. */ if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } /** * Queue handler for pushing new notices to public XMPP subscribers. */ class PublicQueueHandler extends QueueHandler { function transport() { return 'public'; } function handle($notice) { require_once(INSTALLDIR.'/lib/jabber.php'); try { return jabber_public_notice($notice); } catch (XMPPHP_Exception $e) { common_log(LOG_ERR, "Got an XMPPHP_Exception: " . $e->getMessage()); return false; } } }