From 1ac7c112d497e5f47be5c9ebb952dc556debbcad Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Sun, 21 Jul 2019 14:58:16 +0200 Subject: [PATCH] improved stuff --- server/src/client/ConnectedClient.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) {