From 6fae66001e07cc16250bb6f2d4320997c4d024eb Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Mon, 11 Nov 2019 12:51:51 +0100 Subject: [PATCH] Fixed disconnect message --- server/src/TS3ServerClientManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/TS3ServerClientManager.cpp b/server/src/TS3ServerClientManager.cpp index 98cdafa..dae1e40 100644 --- a/server/src/TS3ServerClientManager.cpp +++ b/server/src/TS3ServerClientManager.cpp @@ -119,7 +119,7 @@ bool TSServer::unregisterClient(shared_ptr cl, std::string reas chan_tree_lock.lock(); if(cl->currentChannel) //We dont have to make him invisible if he hasnt even a channel - this->client_move(cl, nullptr, nullptr, "client destroyed", ViewReasonId::VREASON_SERVER_LEFT, false, chan_tree_lock); + this->client_move(cl, nullptr, nullptr, reason, ViewReasonId::VREASON_SERVER_LEFT, false, chan_tree_lock); } serverInstance->databaseHelper()->saveClientPermissions(this->ref(), cl->getClientDatabaseId(), cl->clientPermissions);