mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-30 17:30:59 +01:00
Merge pull request #99 from Koolvin/derp
Adding explicitly set ircbot notifications
This commit is contained in:
commit
79a7427999
1 changed files with 2 additions and 1 deletions
|
@ -30,6 +30,7 @@ class PhabricatorIRCDifferentialNotificationHandler
|
|||
|
||||
public function runBackgroundTasks() {
|
||||
$iterator = new PhabricatorTimelineIterator('ircdiffx', array('difx'));
|
||||
$show = $this->getConfig('notification.actions');
|
||||
|
||||
if (!$this->skippedOldEvents) {
|
||||
// Since we only want to post notifications about new events, skip
|
||||
|
@ -44,7 +45,7 @@ class PhabricatorIRCDifferentialNotificationHandler
|
|||
|
||||
foreach ($iterator as $event) {
|
||||
$data = $event->getData();
|
||||
if (!$data) {
|
||||
if (!$data || ($show !== null && !in_array($data['action'], $show))) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue