modules/echo.php
changeset 39 4027a5b47db5
parent 8 0acb8d9a3194
child 40 1855846cbdab
equal deleted inserted replaced
38:e6a4b7f91e91 39:4027a5b47db5
    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       $libirc_channels[$channel_name]->msg(eb_censor_words(preg_replace("/^\!echo-([^\007, \r\n\a\t]+) /", '', $message['message'])), true);
    26       $libirc_channels[$channel_name]->msg(eb_censor_words(preg_replace("/^\!echo-([^\007, \r\n\a\t]+) /", '', $message['message'])), true);
    27     }
    27     }
    28   }
    28   }
       
    29   else if ( in_array($message['nick'], $privileged_list) && preg_match("/^\!pm ([^\007, \r\n\a\t]+) (.+)/", $message['message'], $match) )
       
    30   {
       
    31     global $irc;
       
    32     $irc->privmsg($match[1], eb_censor_words($match[2]));
       
    33   }
    29 }
    34 }