. */ if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } /** * Common superclass for all IM sending queue handlers. */ class ImSenderQueueHandler extends QueueHandler { function __construct($plugin) { $this->plugin = $plugin; } /** * Handle outgoing IM data to be sent from the bot to a user * @param object $data * @return boolean success */ function handle($data) { return $this->plugin->imManager->send_raw_message($data); } }