author | Dan |
Tue, 20 Jan 2009 22:08:17 -0500 | |
changeset 52 | a8f0e99883d1 |
parent 51 | 508400fc5282 |
permissions | -rw-r--r-- |
8 | 1 |
<?php |
2 |
||
3 |
eb_hook('event_join', 'autoop_event($chan, $message);'); |
|
4 |
||
5 |
function autoop_event(&$chan, &$message) |
|
6 |
{ |
|
7 |
global $privileged_list; |
|
8 |
||
9 |
$channelname = $chan->get_channel_name(); |
|
10 |
||
11 |
// if a known op joins the channel, send mode +o |
|
51
508400fc5282
Major change to permissions backend - performs whois check (only supported blitzed and freenode right now) and advanced permissions supported.
Dan
parents:
8
diff
changeset
|
12 |
if ( check_permissions($message['nick'], array('context' => 'channel', 'channel' => $channelname))) |
8 | 13 |
{ |
14 |
$chan->parent->put("MODE $channelname +o {$message['nick']}\r\n"); |
|
15 |
} |
|
16 |
} |