Fixed disconnect message

This commit is contained in:
WolverinDEV 2019-11-11 12:51:51 +01:00
parent dbb7c322a2
commit 6fae66001e

View File

@ -119,7 +119,7 @@ bool TSServer::unregisterClient(shared_ptr<ConnectedClient> cl, std::string reas
chan_tree_lock.lock(); chan_tree_lock.lock();
if(cl->currentChannel) //We dont have to make him invisible if he hasnt even a channel 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); serverInstance->databaseHelper()->saveClientPermissions(this->ref(), cl->getClientDatabaseId(), cl->clientPermissions);