From 2de86ffca9672336c7235a50b7e4b03fb6c15048 Mon Sep 17 00:00:00 2001 From: Yorhel Date: Fri, 3 Jul 2009 13:19:21 +0200 Subject: Implemented master_users check in Multi::IRC --- lib/Multi/IRC.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') 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!'); -- cgit v1.2.3