aboutsummaryrefslogtreecommitdiff
path: root/idalius.pl
diff options
context:
space:
mode:
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+)$/;