diff options
author | Yorhel <git@yorhel.nl> | 2015-11-26 00:56:35 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2015-11-26 00:56:35 +0100 |
commit | 184a199c887e4b72dea5d787fe5d38cc9e260f05 (patch) | |
tree | a4c1dea5b656899977f7b5a43bb2d33c90eeb84d | |
parent | d5213564860202fb19ab475caf40be988cdac9c3 (diff) |
Multi::IRC: Fix auth bypass bug + make !quote admin-only
-rw-r--r-- | lib/Multi/IRC.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Multi/IRC.pm b/lib/Multi/IRC.pm index 6c6159e3..f1096f08 100644 --- a/lib/Multi/IRC.pm +++ b/lib/Multi/IRC.pm @@ -397,7 +397,7 @@ list => [ 0, 0, sub { $irc->is_channel_name($_[1]) ? 'This is not a warez channel!' : 'I am not a warez bot!'); }], -quote => [ 0, 0, sub { send_quote($_[1]) } ], +quote => [ 1, 0, sub { send_quote($_[1]) } ], vn => [ 0, 0, sub { my($nick, $chan, $q) = @_; @@ -502,7 +502,7 @@ sub command { } my $id = lc $irc->nick_ident($nick); - if($cmd->[1] && !grep $id eq lc $_, @{$O{masters}}) { + if($cmd->[0] && !grep $id eq lc $_, @{$O{masters}}) { $irc->send_msg(PRIVMSG => $chan, 'I am not your master!'); return 1; } |