modules/echo.php
changeset 42 c24a2311f232
parent 41 1d854f22ac5a
child 51 508400fc5282
equal deleted inserted replaced
41:1d854f22ac5a 42:c24a2311f232
    21   {
    21   {
    22     global $libirc_channels;
    22     global $libirc_channels;
    23     $channel_name =& $match[1];
    23     $channel_name =& $match[1];
    24     if ( isset($libirc_channels[$channel_name]) && is_object($libirc_channels[$channel_name]) )
    24     if ( isset($libirc_channels[$channel_name]) && is_object($libirc_channels[$channel_name]) )
    25     {
    25     {
    26       echo "!!! {$match[2]}\n";
       
    27       $libirc_channels[$channel_name]->msg(eb_censor_words($match[2]), true);
    26       $libirc_channels[$channel_name]->msg(eb_censor_words($match[2]), true);
    28     }
    27     }
    29   }
    28   }
    30   else if ( in_array($message['nick'], $privileged_list) && preg_match("/^(?:\!pm|\/msg) ([^\007, \r\n\a\t]+) (.+)/", $message['message'], $match) )
    29   else if ( in_array($message['nick'], $privileged_list) && preg_match("/^(?:\!pm|\/msg) ([^\007, \r\n\a\t]+) (.+)/", $message['message'], $match) )
    31   {
    30   {