[TASK] Added the reconnect-flag that works now.
This commit is contained in:
@@ -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 = "";
|
||||
|
||||
Reference in New Issue
Block a user