diff options
author | Yorhel <git@yorhel.nl> | 2009-07-03 13:19:21 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2009-07-03 13:19:21 +0200 |
commit | 2de86ffca9672336c7235a50b7e4b03fb6c15048 (patch) | |
tree | 3c15d0acd697c3424daa68f9c33cd990b80d038e | |
parent | 868dbd3ce390412623b44bd2e53e5436b816c26e (diff) |
Implemented master_users check in Multi::IRC
-rw-r--r-- | lib/Multi/IRC.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Multi/IRC.pm b/lib/Multi/IRC.pm index e408a3cc..02be04fb 100644 --- a/lib/Multi/IRC.pm +++ b/lib/Multi/IRC.pm @@ -404,6 +404,7 @@ sub mymaster { # same @_ as the cmd_ functions if(!$_[HEAP]{irc}->is_channel_operator($_[HEAP]{o}{channel}[0], $_[ARG2]) && !$_[HEAP]{irc}->is_channel_owner($_[HEAP]{o}{channel}[0], $_[ARG2]) && !$_[HEAP]{irc}->is_channel_admin($_[HEAP]{o}{channel}[0], $_[ARG2]) + || ($_[HEAP]{o}{master_users} && !grep lc($_) eq lc($_[ARG2]), @{$_[HEAP]{o}{master_users}}) ) { $_[KERNEL]->post(circ => privmsg => $_[ARG1], ($_[ARG1]=~/^#/?$_[ARG2].', ':'').'You are not my master!'); |