Merge pull request #932 from th3cr0wl3r/master

Servereinstellung wurden von "serveradmin from IP:56451" geändert #796
This commit is contained in:
Ulrich Block 2016-10-02 16:53:13 +02:00 committed by GitHub
commit 26516b102c

View File

@ -170,6 +170,10 @@ class TS3 {
@fputs($this->socket, "login $admin $querypassword" . "\n"); @fputs($this->socket, "login $admin $querypassword" . "\n");
$this->errorcode = $this->ReplaceFromTS3(fgets($this->socket, 8192)); $this->errorcode = $this->ReplaceFromTS3(fgets($this->socket, 8192));
@fputs($this->socket, "clientupdate client_nickname=Easy-WI" . "\n");
$this->errorcode = $this->ReplaceFromTS3(fgets($this->socket, 8192));
if (strpos($this->errorcode,'error id=0') === false) { if (strpos($this->errorcode,'error id=0') === false) {
$this->connected = false; $this->connected = false;
} else { } else {
@ -1064,4 +1068,4 @@ class TS3 {
return (is_array($array) and isset($array[0]['version'])) ? $array[0]['version'] : false; return (is_array($array) and isset($array[0]['version'])) ? $array[0]['version'] : false;
} }
} }