database.php
changeset 51 508400fc5282
parent 27 4a9469bada05
--- a/database.php	Sat Jan 10 14:12:36 2009 -0500
+++ b/database.php	Tue Jan 20 22:08:07 2009 -0500
@@ -49,10 +49,11 @@
       // alert everyone on the bot's alert list
       if ( is_object($irc) )
       {
-        global $alert_list;
-        foreach ( $alert_list as $nick )
+        global $permissions;
+        foreach ( $permissions as $nick => $perms )
         {
-          $irc->privmsg($nick, "MySQL query error: $m_e");
+          if ( check_permissions($nick, array('context' => 'alert')) )
+            $irc->privmsg($nick, "MySQL query error: $m_e");
         }
       }
       else