author | Dan |
Sat, 15 Nov 2008 15:03:21 -0500 | |
changeset 24 | 6fa9346a9bdc |
parent 8 | 0acb8d9a3194 |
child 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 |
|
12 |
if ( in_array($message['nick'], $privileged_list) ) |
|
13 |
{ |
|
14 |
$chan->parent->put("MODE $channelname +o {$message['nick']}\r\n"); |
|
15 |
} |
|
16 |
} |