[TASK] Implemented the ProtocolHandler things so it works again.

[TASK] Added some comments.
[TASK] Added TODOs concerning refactoring and more functions that are needed.
This commit is contained in:
Jan Philipp Timme
2010-12-08 16:47:04 +00:00
parent 2b8263a49d
commit dee3333578
10 changed files with 114 additions and 17 deletions
+3 -3
View File
@@ -39,7 +39,7 @@ class Client_IrcClient extends Client_AbstractClient {
* Processes the resulting ContentObject from a ProtocolHandler.
* Does all the hard work.
* @param string $data
* @return string
* @return void
*/
public function processContentObject($contentObject) {
$data = $contentObject->rawData;
@@ -68,8 +68,8 @@ class Client_IrcClient extends Client_AbstractClient {
$return .= "QUIT :lol\r\n";
}
//if($return !== "") echo "[SEND] ".$return;
return $return;
//workaround. will be removed soon
$this->protocolHandler->sendRaw($return);
}
/**