equal
deleted
inserted
replaced
7 global $privileged_list; |
7 global $privileged_list; |
8 |
8 |
9 $channelname = $chan->get_channel_name(); |
9 $channelname = $chan->get_channel_name(); |
10 |
10 |
11 // if a known op joins the channel, send mode +o |
11 // if a known op joins the channel, send mode +o |
12 if ( in_array($message['nick'], $privileged_list) ) |
12 if ( check_permissions($message['nick'], array('context' => 'channel', 'channel' => $channelname))) |
13 { |
13 { |
14 $chan->parent->put("MODE $channelname +o {$message['nick']}\r\n"); |
14 $chan->parent->put("MODE $channelname +o {$message['nick']}\r\n"); |
15 } |
15 } |
16 } |
16 } |