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); }