aboutsummaryrefslogtreecommitdiff
path: root/idalius.pl
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2017-11-24 19:25:06 +1300
committerDavid Phillips <david@sighup.nz>2017-11-24 19:25:06 +1300
commit5203987112cc48849f0f796725f1e0e8b1bb2af6 (patch)
treefad2f3132622a8e4b329e44c621f5aa86b4321c4 /idalius.pl
parent675fb6b676e1f72c6aa337bfa500501e344e3eb0 (diff)
downloadidalius-5203987112cc48849f0f796725f1e0e8b1bb2af6.tar.xz
Don't even respond to non-admins
Diffstat (limited to 'idalius.pl')
-rwxr-xr-xidalius.pl5
1 files changed, 1 insertions, 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+)$/;