/**
* 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
*
* @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
$user = $this->get_user($from);
$notice_text = $info['message'];
- $this->handle_incoming($from, $notice_text);
+ $this->handleIncoming($from, $notice_text);
return true;
}
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;
}
* @return true if processing completed, false if message should be reprocessed\r
*/\r
public function receiveRawMessage($data) {\r
- $this->handle_incoming($data['sender'], $data['message']);\r
+ $this->handleIncoming($data['sender'], $data['message']);\r
return true;\r
}\r
\r
return;
}
- $this->handle_incoming($from, $pl['body']);
+ $this->handleIncoming($from, $pl['body']);
return true;
}