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