mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-26 07:20:57 +01:00
Global ignore list for IRCBot
Summary: ignore - array - Array of nicks to ignore all mesages from Test Plan: run phabot with ignore set Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D4582
This commit is contained in:
parent
5c6201e86a
commit
e948073107
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue