From 9dfe91a70781292bee0ecadf1ac5e13b495309eb Mon Sep 17 00:00:00 2001 From: David Phillips Date: Tue, 7 Mar 2017 15:13:50 +1300 Subject: Make identifying with services optional to remote control --- saxrobot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'saxrobot') diff --git a/saxrobot b/saxrobot index da51f8f..869d976 100755 --- a/saxrobot +++ b/saxrobot @@ -84,7 +84,7 @@ sub irc_public { sub irc_msg { my ($who, $to, $what, $ided) = @_[ARG0, ARG1, ARG2, ARG3]; my $nick = (split /!/, $who)[0]; - if ($ided != 1) { + if ($config{must_id} && $ided != 1) { $irc->yield(privmsg => $nick => "You must identify with services"); return; } -- cgit v1.1 From e99c752927ba2e151ec887ea2e82e80d54ccea8c Mon Sep 17 00:00:00 2001 From: David Phillips Date: Tue, 7 Mar 2017 15:33:30 +1300 Subject: Add configuration option for port --- saxrobot | 1 + 1 file changed, 1 insertion(+) (limited to 'saxrobot') 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: $!"; -- cgit v1.1