Some minor temporary client move bug fix

This commit is contained in:
WolverinDEV 2020-12-04 14:52:32 +01:00
parent 75b6d0c677
commit 7d66afc24c

View File

@ -950,7 +950,7 @@ command_result ConnectedClient::handleCommandChannelCreate(Command &cmd) {
/* FIXME: Log group assignment */
this->server->groups->setChannelGroup(this->getClientDatabaseId(), channel_admin_group, created_channel);
if (created_channel->channelType() == ChannelType::temporary && (this->getType() == ClientType::CLIENT_TEAMSPEAK || this->getType() == ClientType::CLIENT_WEB)) {
if (created_channel->channelType() == ChannelType::temporary && (this->getType() == ClientType::CLIENT_TEAMSPEAK || this->getType() == ClientType::CLIENT_WEB || this->getType() == ClientType::CLIENT_TEASPEAK)) {
channel_tree_read_lock.unlock();
std::unique_lock channel_tree_write_lock{this->server->channel_tree_lock};