--- a/modules/echo.php Thu Jan 01 00:18:34 2009 -0500
+++ b/modules/echo.php Sat Jan 03 17:09:16 2009 -0500
@@ -17,13 +17,14 @@
{
global $privileged_list;
- if ( in_array($message['nick'], $privileged_list) && preg_match("/^(?:\!echo-|\/msg )([^\007, \r\n\a\t]+) /", $message['message'], $match) )
+ if ( in_array($message['nick'], $privileged_list) && preg_match("/^(?:\!echo-|\/msg )([^\007, \r\n\a\t]+) (.+)/", $message['message'], $match) )
{
global $libirc_channels;
$channel_name =& $match[1];
if ( isset($libirc_channels[$channel_name]) && is_object($libirc_channels[$channel_name]) )
{
- $libirc_channels[$channel_name]->msg(eb_censor_words(preg_replace("/^(?:\!echo-|\/msg )((?:#|&)[^\007, \r\n\a\t]+) /", '', $message['message'])), true);
+ echo "!!! {$match[2]}\n";
+ $libirc_channels[$channel_name]->msg(eb_censor_words($match[2]), true);
}
}
else if ( in_array($message['nick'], $privileged_list) && preg_match("/^(?:\!pm|\/msg) ([^\007, \r\n\a\t]+) (.+)/", $message['message'], $match) )