* 2) override handleInput() with what to do when data is waiting on
* one of the sockets
* 3) override idle($timeout) to do keepalives (if necessary)
- * 4) implement send_raw_message() to send raw data that ImPlugin::enqueue_outgoing_raw
+ * 4) implement send_raw_message() to send raw data that ImPlugin::enqueueOutgoingRaw
* enqueued
*/
/**
* send a single notice to a given screenname
* The implementation should put raw data, ready to send, into the outgoing
- * queue using enqueue_outgoing_raw()
+ * queue using enqueueOutgoingRaw()
*
* @param string $screenname screenname to send to
* @param Notice $notice notice to send
/**
* send a message (text) to a given screenname
* The implementation should put raw data, ready to send, into the outgoing
- * queue using enqueue_outgoing_raw()
+ * queue using enqueueOutgoingRaw()
*
* @param string $screenname screenname to send to
* @param Notice $body text to send
*
* @param object $data
*/
- function enqueue_outgoing_raw($data)
+ function enqueueOutgoingRaw($data)
{
$qm = QueueManager::get();
$qm->enqueue($data, $this->transport . '-out');
function sendMessage($screenname, $body)
{
$this->fake_aim->sendIm($screenname, $body);
- $this->enqueue_outgoing_raw($this->fake_aim->would_be_sent);
+ $this->enqueueOutgoingRaw($this->fake_aim->would_be_sent);
return true;
}
$lines = explode("\n", $body);
foreach ($lines as $line) {
$this->fake_irc->doPrivmsg($screenname, $line);
- $this->enqueue_outgoing_raw(array('type' => 'message', 'prioritise' => 0, 'data' => $this->fake_irc->would_be_sent));
+ $this->enqueueOutgoingRaw(array('type' => 'message', 'prioritise' => 0, 'data' => $this->fake_irc->would_be_sent));
}
return true;
}
*/
public function checked_send_confirmation_code($screenname, $code, $user) {
$this->fake_irc->doPrivmsg('NickServ', 'INFO '.$screenname);
- $this->enqueue_outgoing_raw(
+ $this->enqueueOutgoingRaw(
array(
'type' => 'nickcheck',
'prioritise' => 1,
* @return boolean success value\r
*/\r
public function sendMessage($screenname, $body) {\r
- $this->enqueue_outgoing_raw(array('to' => $screenname, 'message' => $body));\r
+ $this->enqueueOutgoingRaw(array('to' => $screenname, 'message' => $body));\r
return true;\r
}\r
\r
*/
public function send($msg, $timeout=NULL)
{
- $this->plugin->enqueue_outgoing_raw($msg);
+ $this->plugin->enqueueOutgoingRaw($msg);
}
//@{