git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

Commit a3725de4 authored by Craig Andrews's avatar Craig Andrews

handle_incoming -> handleIncoming

parent 463e9c10
......@@ -106,7 +106,7 @@ abstract class ImPlugin extends Plugin
/**
* receive a raw message
* Raw IM data is taken from the incoming queue, and passed to this function.
* It should parse the raw message and call handle_incoming()
* It should parse the raw message and call handleIncoming()
*
* Returning false may CAUSE REPROCESSING OF THE QUEUE ITEM, and should
* be used for temporary failures only. For permanent failures such as
......@@ -436,7 +436,7 @@ abstract class ImPlugin extends Plugin
*
* @param boolean success
*/
protected function handle_incoming($from, $notice_text)
protected function handleIncoming($from, $notice_text)
{
$user = $this->get_user($from);
// For common_current_user to work
......
......@@ -138,7 +138,7 @@ class AimPlugin extends ImPlugin
$user = $this->get_user($from);
$notice_text = $info['message'];
$this->handle_incoming($from, $notice_text);
$this->handleIncoming($from, $notice_text);
return true;
}
......
......@@ -211,10 +211,10 @@ class IrcPlugin extends ImPlugin {
if (in_array($command, $this->whiteList)) {
$this->handle_channel_incoming($data['sender'], $data['source'], $message);
} else {
$this->handle_incoming($data['sender'], $message);
$this->handleIncoming($data['sender'], $message);
}
} else {
$this->handle_incoming($data['sender'], $data['message']);
$this->handleIncoming($data['sender'], $data['message']);
}
return true;
}
......
......@@ -173,7 +173,7 @@ class MsnPlugin extends ImPlugin {
* @return true if processing completed, false if message should be reprocessed
*/
public function receiveRawMessage($data) {
$this->handle_incoming($data['sender'], $data['message']);
$this->handleIncoming($data['sender'], $data['message']);
return true;
}
......
......@@ -378,7 +378,7 @@ class XmppPlugin extends ImPlugin
return;
}
$this->handle_incoming($from, $pl['body']);
$this->handleIncoming($from, $pl['body']);
return true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment