enanobot.php
changeset 9 4192954c29d1
parent 8 0acb8d9a3194
child 13 f073c94a1477
equal deleted inserted replaced
8:0acb8d9a3194 9:4192954c29d1
   190 {
   190 {
   191   global $irc, $nick, $mysql_conn, $privileged_list;
   191   global $irc, $nick, $mysql_conn, $privileged_list;
   192   
   192   
   193   if ( strpos($message['message'], $nick) && !in_array($message['nick'], $privileged_list) && $message['nick'] != $nick )
   193   if ( strpos($message['message'], $nick) && !in_array($message['nick'], $privileged_list) && $message['nick'] != $nick )
   194   {
   194   {
   195     //$target_nick =& $message['nick'];
   195     $target_nick =& $message['nick'];
   196     //$chan->msg("{$target_nick}, I'm only a bot. :-) You should probably rely on the advice of humans if you need further assistance.", true);
   196     $chan->msg("{$target_nick}, I'm only a bot. :-) You should probably rely on the advice of humans if you need further assistance.", true);
   197   }
   197   }
   198   else
   198   else
   199   {
   199   {
   200     eval(eb_fetch_hook('event_channel_msg'));
   200     eval(eb_fetch_hook('event_channel_msg'));
   201   }
   201   }