diff --git a/server/src/client/ConnectedClient.cpp b/server/src/client/ConnectedClient.cpp index 81b1913..e5a2abe 100644 --- a/server/src/client/ConnectedClient.cpp +++ b/server/src/client/ConnectedClient.cpp @@ -766,7 +766,11 @@ void ConnectedClient::sendServerInit() { command["pv"] = 6; //Protocol version command["acn"] = this->getDisplayName(); command["aclid"] = this->getClientId(); - this->sendCommand(command); + if(dynamic_cast(this)) { + dynamic_cast(this)->sendCommand0(command, false, true); /* process it directly so the order for the channellist entries is ensured. (First serverinit then everything else) */ + } else { + this->sendCommand(command); + } } bool ConnectedClient::handleCommandFull(Command& cmd, bool disconnectOnFail) {