From 4c9f5ba7f3adbf1902af3535dcee10e6768cbc57 Mon Sep 17 00:00:00 2001 From: Jan Philipp Timme Date: Sat, 12 Mar 2011 13:35:59 +0000 Subject: [PATCH] [TASK] Fixed: now using getter instead of protected property. --- Classes/Client/BotClient.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Classes/Client/BotClient.php b/Classes/Client/BotClient.php index 8e69404..355f07a 100644 --- a/Classes/Client/BotClient.php +++ b/Classes/Client/BotClient.php @@ -22,15 +22,15 @@ class Client_BotClient extends Client_AbstractClient { */ public function processContentObject($contentObject) { $return = ""; - $data = $contentObject->rawData; + $data = $contentObject->getRawData(); if(strpos($data, "-") !== FALSE ) { - $data = explode("-", $data); + $data = explode("-", $data, 2); $this->clientManager->sendToID((int) $data[0], $data[1]."\r\n"); $return = print_r($data, TRUE); } if(strpos($data, "+") !== FALSE ) { - $data = explode("+", $data); + $data = explode("+", $data, 2); $this->clientManager->sendToGroup($data[0], $data[1]."\r\n"); $return = print_r($data, TRUE); }