summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2009-09-21 14:39:22 -0400
committerEvan Prodromou <evan@status.net>2009-09-21 14:39:22 -0400
commit98924a80d776107a734b44027dda18094b1f093f (patch)
treef0059e4c217703a28e65cc1e33ec74ad084b65ac /lib
parent6a088afd4be4076a31e8713ed96ac62060bf7278 (diff)
'easy' way to handle notices at queue time
Diffstat (limited to 'lib')
-rw-r--r--lib/unqueuemanager.php3
-rw-r--r--lib/util.php3
2 files changed, 5 insertions, 1 deletions
diff --git a/lib/unqueuemanager.php b/lib/unqueuemanager.php
index 269ecdeaa..6cfe5bcbd 100644
--- a/lib/unqueuemanager.php
+++ b/lib/unqueuemanager.php
@@ -72,6 +72,9 @@ class UnQueueManager
require_once(INSTALLDIR.'/lib/jabber.php');
jabber_broadcast_notice($notice);
break;
+ case 'plugin':
+ Event::handle('HandleQueuedNotice', array(&$notice));
+ break;
default:
if (Event::handle('UnqueueHandleNotice', array(&$notice, $queue))) {
throw ServerException("UnQueueManager: Unknown queue: $queue");
diff --git a/lib/util.php b/lib/util.php
index eb247562d..37744fc5b 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -897,7 +897,8 @@ function common_enqueue_notice($notice)
'twitter',
'facebook',
'ping');
- static $allTransports = array('sms');
+
+ static $allTransports = array('sms', 'plugin');
$transports = $allTransports;