modules/autoop.php
changeset 51 508400fc5282
parent 8 0acb8d9a3194
equal deleted inserted replaced
50:45164bc2567a 51:508400fc5282
     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 }