author | Dan |
Wed, 31 Dec 2008 21:54:19 -0500 | |
changeset 39 | 4027a5b47db5 |
parent 38 | e6a4b7f91e91 |
child 40 | 1855846cbdab |
modules/echo.php | file | annotate | diff | comparison | revisions |
--- a/modules/echo.php Wed Dec 31 21:41:57 2008 -0500 +++ b/modules/echo.php Wed Dec 31 21:54:19 2008 -0500 @@ -26,4 +26,9 @@ $libirc_channels[$channel_name]->msg(eb_censor_words(preg_replace("/^\!echo-([^\007, \r\n\a\t]+) /", '', $message['message'])), true); } } + else if ( in_array($message['nick'], $privileged_list) && preg_match("/^\!pm ([^\007, \r\n\a\t]+) (.+)/", $message['message'], $match) ) + { + global $irc; + $irc->privmsg($match[1], eb_censor_words($match[2])); + } }