database.php
changeset 51 508400fc5282
parent 27 4a9469bada05
equal deleted inserted replaced
50:45164bc2567a 51:508400fc5282
    47       }
    47       }
    48       $m_et = true;
    48       $m_et = true;
    49       // alert everyone on the bot's alert list
    49       // alert everyone on the bot's alert list
    50       if ( is_object($irc) )
    50       if ( is_object($irc) )
    51       {
    51       {
    52         global $alert_list;
    52         global $permissions;
    53         foreach ( $alert_list as $nick )
    53         foreach ( $permissions as $nick => $perms )
    54         {
    54         {
    55           $irc->privmsg($nick, "MySQL query error: $m_e");
    55           if ( check_permissions($nick, array('context' => 'alert')) )
       
    56             $irc->privmsg($nick, "MySQL query error: $m_e");
    56         }
    57         }
    57       }
    58       }
    58       else
    59       else
    59       {
    60       {
    60         echo "\nQUERY ERROR: $m_e\nQuery: $sql\n";
    61         echo "\nQUERY ERROR: $m_e\nQuery: $sql\n";