. */ if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } /** * Common superclass for all IM sending queue handlers. */ class ImQueueHandler extends QueueHandler { function __construct($plugin) { $this->plugin = $plugin; } /** * Handle a notice * @param Notice $notice * @return boolean success */ function handle($notice) { $this->plugin->broadcastNotice($notice); if ($notice->is_local == Notice::LOCAL_PUBLIC || $notice->is_local == Notice::LOCAL_NONPUBLIC) { $this->plugin->public_notice($notice); } return true; } }