From 5203987112cc48849f0f796725f1e0e8b1bb2af6 Mon Sep 17 00:00:00 2001 From: David Phillips Date: Fri, 24 Nov 2017 19:25:06 +1300 Subject: Don't even respond to non-admins --- idalius.pl | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/idalius.pl b/idalius.pl index 0f59b2f..8e69f51 100755 --- a/idalius.pl +++ b/idalius.pl @@ -141,10 +141,7 @@ sub irc_msg { $irc->yield(privmsg => $nick => "You must identify with services"); return; } - if (!grep {$_ eq $who} @{$config{admins}}) { - $irc->yield(privmsg => $nick => "I am bot, go away"); - return; - } + return unless grep {$_ eq $who} @{$config{admins}}; # FIXME this needs tidying. Some of this can be factored out, surely. if ($what =~ /^nick\s/) { my ($newnick) = $what =~ /^nick\s+(\S+)$/; -- cgit v1.1