add a hook for the unqueuemanager

This commit is contained in:
Evan Prodromou 2009-09-21 14:23:35 -04:00
parent 5b91223ce4
commit eb41d9e5da
2 changed files with 7 additions and 1 deletions

View File

@ -261,3 +261,7 @@ StartEnqueueNotice: about to add a notice to the queues (good place to add a new
EndEnqueueNotice: after adding a notice to the queues
- $notice: the notice being added
- $transports: modifiable list of transports to use
UnqueueHandleNotice: Handle a notice when no queue manager is available
- $notice: the notice to handle
- $queue: the "queue" that is being executed

View File

@ -73,7 +73,9 @@ class UnQueueManager
jabber_broadcast_notice($notice);
break;
default:
throw ServerException("UnQueueManager: Unknown queue: $type");
if (Event::handle('UnqueueHandleNotice', array(&$notice, $queue))) {
throw ServerException("UnQueueManager: Unknown queue: $queue");
}
}
}