diff options
Diffstat (limited to 'plugins/Irc/extlib/phergie/Phergie/Plugin/Message.php')
-rw-r--r-- | plugins/Irc/extlib/phergie/Phergie/Plugin/Message.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Irc/extlib/phergie/Phergie/Plugin/Message.php b/plugins/Irc/extlib/phergie/Phergie/Plugin/Message.php index 4dfbb30de..af8fc7287 100644 --- a/plugins/Irc/extlib/phergie/Phergie/Plugin/Message.php +++ b/plugins/Irc/extlib/phergie/Phergie/Plugin/Message.php @@ -52,14 +52,14 @@ class Phergie_Plugin_Message extends Phergie_Plugin_Abstract $}ix REGEX; - return !$event->isInChannel() + return !$event->isInChannel() || preg_match($targetPattern, $event->getText()) > 0; } /** * Allow for prefix and bot name aware extraction of a message * - * @return string|bool $message The message, which is possibly targeted at the + * @return string|bool $message The message, which is possibly targeted at the * bot or false if a prefix requirement failed */ public function getMessage() |