[TASK] Fixed: now using getter instead of protected property.

This commit is contained in:
Jan Philipp Timme 2011-03-12 13:35:59 +00:00
parent 23ca3e0554
commit 4c9f5ba7f3

View File

@ -22,15 +22,15 @@ class Client_BotClient extends Client_AbstractClient {
*/ */
public function processContentObject($contentObject) { public function processContentObject($contentObject) {
$return = ""; $return = "";
$data = $contentObject->rawData; $data = $contentObject->getRawData();
if(strpos($data, "-") !== FALSE ) { if(strpos($data, "-") !== FALSE ) {
$data = explode("-", $data); $data = explode("-", $data, 2);
$this->clientManager->sendToID((int) $data[0], $data[1]."\r\n"); $this->clientManager->sendToID((int) $data[0], $data[1]."\r\n");
$return = print_r($data, TRUE); $return = print_r($data, TRUE);
} }
if(strpos($data, "+") !== FALSE ) { if(strpos($data, "+") !== FALSE ) {
$data = explode("+", $data); $data = explode("+", $data, 2);
$this->clientManager->sendToGroup($data[0], $data[1]."\r\n"); $this->clientManager->sendToGroup($data[0], $data[1]."\r\n");
$return = print_r($data, TRUE); $return = print_r($data, TRUE);
} }