[TASK] Added the reconnect-flag that works now.

This commit is contained in:
Jan Philipp Timme
2010-11-28 16:38:03 +00:00
parent b318595783
commit a20a91bf12
7 changed files with 166 additions and 8 deletions
+9 -2
View File
@@ -21,6 +21,14 @@ class Client_IrcClient extends Client_AbstractClient {
function __construct() {
$this->nick = "Serena";
$this->channels = array();
$this->resetConnectionStatus();
}
/**
* Will reset the clients internal variables concerning the connection status.
* @return void
*/
public function resetConnectionStatus() {
$this->lines = 0;
$this->got_001 = FALSE;
$this->joined = FALSE;
@@ -34,8 +42,7 @@ class Client_IrcClient extends Client_AbstractClient {
*/
public function processContentObject($contentObject) {
$data = $contentObject->rawData;
//echo "[RECV] ".$data;
echo "[RECV] ".$data;
$this->clientManager->sendToGroup("srv", "[#".$this->ID."] ".$data."\r\n\r\n");
$return = "";