modules/autoop.php
changeset 51 508400fc5282
parent 8 0acb8d9a3194
--- a/modules/autoop.php	Sat Jan 10 14:12:36 2009 -0500
+++ b/modules/autoop.php	Tue Jan 20 22:08:07 2009 -0500
@@ -9,7 +9,7 @@
   $channelname = $chan->get_channel_name();
   
   // if a known op joins the channel, send mode +o
-  if ( in_array($message['nick'], $privileged_list) )
+  if ( check_permissions($message['nick'], array('context' => 'channel', 'channel' => $channelname)))
   {
     $chan->parent->put("MODE $channelname +o {$message['nick']}\r\n");
   }