X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=inline;f=plugins%2FIrc%2Fextlib%2Fphergie%2FPhergie%2FPlugin%2FMessage.php;h=4dfbb30dee13d1becab276a296b99b4139f48449;hb=1f3dbe11989a320be6f82e9d02e8c2dbd7b1cb4d;hp=af8fc7287b3aa044f0a0682243b5110734d6805e;hpb=a3df3b63670aeb31785ba8665ebc2b78d4e7760f;p=quix0rs-gnu-social.git diff --git a/plugins/Irc/extlib/phergie/Phergie/Plugin/Message.php b/plugins/Irc/extlib/phergie/Phergie/Plugin/Message.php index af8fc7287b..4dfbb30dee 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()