From e99c752927ba2e151ec887ea2e82e80d54ccea8c Mon Sep 17 00:00:00 2001
From: David Phillips <david@sighup.nz>
Date: Tue, 7 Mar 2017 15:33:30 +1300
Subject: Add configuration option for port

---
 saxrobot     | 1 +
 sb_config.pm | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/saxrobot b/saxrobot
index 869d976..a90eb3c 100755
--- a/saxrobot
+++ b/saxrobot
@@ -14,6 +14,7 @@ my %config = sb_config::parse_config('bot.conf');
 my $irc = POE::Component::IRC->spawn(
 	nick => $config{nick},
 	ircname => $config{ircname},
+	port    => $config{port},
 	server  => $config{server},
 	username => $config{username},
 ) or die "Failed to create new PoCo-IRC: $!";
diff --git a/sb_config.pm b/sb_config.pm
index 53ce0e6..d107147 100644
--- a/sb_config.pm
+++ b/sb_config.pm
@@ -8,7 +8,7 @@ use Config::Tiny;
 
 sub parse_config
 {
-	my @scalar_configs = ('nick', 'username', 'ircname', 'server', 'password', 'must_id');
+	my @scalar_configs = ('nick', 'username', 'ircname', 'server', 'port', 'password', 'must_id');
 	my @list_configs = ('channels', 'ignore', 'admins');
 	my $file = $_[0];
 	my %built_config;
-- 
cgit v1.1