diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/imchannel.php | 4 | ||||
-rw-r--r-- | lib/implugin.php | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/imchannel.php b/lib/imchannel.php index 12354ce4b..a05229990 100644 --- a/lib/imchannel.php +++ b/lib/imchannel.php @@ -47,7 +47,7 @@ class IMChannel extends Channel 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) @@ -56,7 +56,7 @@ class IMChannel extends Channel $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, diff --git a/lib/implugin.php b/lib/implugin.php index dafb8a416..cbf10d391 100644 --- a/lib/implugin.php +++ b/lib/implugin.php @@ -88,7 +88,7 @@ abstract class ImPlugin extends Plugin */ function send_notice($screenname, $notice) { - return $this->send_message($screenname, $this->format_notice($notice)); + return $this->sendMessage($screenname, $this->format_notice($notice)); } /** @@ -101,7 +101,7 @@ abstract class ImPlugin extends Plugin * * @return boolean success value */ - abstract function send_message($screenname, $body); + abstract function sendMessage($screenname, $body); /** * receive a raw message @@ -249,7 +249,7 @@ abstract class ImPlugin extends Plugin protected function send_from_site($screenname, $msg) { $text = '['.common_config('site', 'name') . '] ' . $msg; - $this->send_message($screenname, $text); + $this->sendMessage($screenname, $text); } /** @@ -271,7 +271,7 @@ abstract class ImPlugin extends Plugin '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); } /** |