. */ if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } /** * Queue handler for pushing new notices to Jabber users. * @fixme this exception handling doesn't look very good. */ class JabberQueueHandler extends QueueHandler { var $conn = null; function transport() { return 'jabber'; } function handle($notice) { require_once(INSTALLDIR.'/lib/jabber.php'); try { return jabber_broadcast_notice($notice); } catch (XMPPHP_Exception $e) { common_log(LOG_ERR, "Got an XMPPHP_Exception: " . $e->getMessage()); return false; } } }