function output($user, $text)
{
$text = '['.common_config('site', 'name') . '] ' . $text;
- $this->imPlugin->send_message($this->imPlugin->get_screenname($user), $text);
+ $this->imPlugin->sendMessage($this->imPlugin->get_screenname($user), $text);
}
function error($user, $text)
$screenname = $this->imPlugin->get_screenname($user);
if($screenname){
- $this->imPlugin->send_message($screenname, $text);
+ $this->imPlugin->sendMessage($screenname, $text);
return true;
}else{
common_log(LOG_ERR,
*/
function send_notice($screenname, $notice)
{
- return $this->send_message($screenname, $this->format_notice($notice));
+ return $this->sendMessage($screenname, $this->format_notice($notice));
}
/**
*
* @return boolean success value
*/
- abstract function send_message($screenname, $body);
+ abstract function sendMessage($screenname, $body);
/**
* receive a raw message
protected function send_from_site($screenname, $msg)
{
$text = '['.common_config('site', 'name') . '] ' . $msg;
- $this->send_message($screenname, $text);
+ $this->sendMessage($screenname, $text);
}
/**
'or if you didn\'t request this confirmation, just ignore this message.'),
$user->nickname, common_config('site', 'name'), $this->getDisplayName(), common_local_url('confirmaddress', array('code' => $code)));
- return $this->send_message($screenname, $body);
+ return $this->sendMessage($screenname, $body);
}
/**
return 'aim:' . $screenname;
}
- function send_message($screenname, $body)
+ function sendMessage($screenname, $body)
{
$this->fake_aim->sendIm($screenname, $body);
$this->enqueue_outgoing_raw($this->fake_aim->would_be_sent);
*/\r
public function output($user, $text) {\r
$text = $user->nickname.': ['.common_config('site', 'name') . '] ' . $text;\r
- $this->imPlugin->send_message($this->ircChannel, $text);\r
+ $this->imPlugin->sendMessage($this->ircChannel, $text);\r
}\r
}
\ No newline at end of file
* @param string $body Text to send
* @return boolean true on success
*/
- public function send_message($screenname, $body) {
+ public function sendMessage($screenname, $body) {
$lines = explode("\n", $body);
foreach ($lines as $line) {
$this->fake_irc->doPrivmsg($screenname, $line);
if ($this->regcheck && !$checked) {
return $this->checked_send_confirmation_code($screenname, $code, $user);
} else {
- return $this->send_message($screenname, $body);
+ return $this->sendMessage($screenname, $body);
}
}
// Send message
$this->plugin->send_confirmation_code($screenname, $nickdata['code'], $nickdata['user'], true);
} else {
- $this->plugin->send_message($screenname, _m('Your nickname is not registered so IRC connectivity cannot be enabled'));
+ $this->plugin->sendMessage($screenname, _m('Your nickname is not registered so IRC connectivity cannot be enabled'));
$confirm = new Confirm_address();
* @param string $body Text to send\r
* @return boolean success value\r
*/\r
- public function send_message($screenname, $body) {\r
+ public function sendMessage($screenname, $body) {\r
$this->enqueue_outgoing_raw(array('to' => $screenname, 'message' => $body));\r
return true;\r
}\r
$wm = Msn_waiting_message::top($data['to']);\r
while ($wm != NULL) {\r
if ($sessionFailed) {\r
- $this->plugin->send_message($wm->screenname, $wm->message);\r
+ $this->plugin->sendMessage($wm->screenname, $wm->message);\r
$sessionFailed = true;\r
} elseif (!$this->conn->sendMessage($wm->screenname, $wm->message, $ignore)) {\r
- $this->plugin->send_message($wm->screenname, $wm->message);\r
+ $this->plugin->sendMessage($wm->screenname, $wm->message);\r
}\r
\r
$wm->delete();\r
protected function requeue_waiting_messages() {\r
$wm = Msn_waiting_message::top();\r
while ($wm != NULL) {\r
- $this->plugin->send_message($wm->screenname, $wm->message);\r
+ $this->plugin->sendMessage($wm->screenname, $wm->message);\r
$wm->delete();\r
$wm = Msn_waiting_message::top();\r
}\r
return 'xmpp:' . $screenname;
}
- function send_message($screenname, $body)
+ function sendMessage($screenname, $body)
{
$this->queuedConnection()->message($screenname, $body, 'chat');
}