diff --git a/src/infrastructure/daemon/irc/PhabricatorIRCBot.php b/src/infrastructure/daemon/irc/PhabricatorIRCBot.php index c50d682963..a75352d589 100644 --- a/src/infrastructure/daemon/irc/PhabricatorIRCBot.php +++ b/src/infrastructure/daemon/irc/PhabricatorIRCBot.php @@ -211,6 +211,11 @@ final class PhabricatorIRCBot extends PhabricatorDaemon { } private function routeMessage(PhabricatorIRCMessage $message) { + $ignore = $this->getConfig('ignore'); + if ($ignore && in_array($message->getSenderNickName(), $ignore)) { + return; + } + foreach ($this->handlers as $handler) { try { $handler->receiveMessage($message);