Begining with the new VS structure

This commit is contained in:
WolverinDEV
2020-03-04 16:24:36 +01:00
parent e47d38da79
commit be4a99dcd7
56 changed files with 2253 additions and 188 deletions
+3 -2
View File
@@ -16,7 +16,7 @@
#include "../../server/file/FileServer.h"
#include "../../server/VoiceServer.h"
#include "../voice/VoiceClient.h"
#include "PermissionManager.h"
#include "PermissionRegister.h"
#include "../../InstanceHandler.h"
#include "../../server/QueryServer.h"
#include "../file/FileClient.h"
@@ -48,7 +48,7 @@ using namespace std::chrono;
using namespace std;
using namespace ts;
using namespace ts::server;
using namespace ts::token;
using namespace ts::server::tokens;
#define QUERY_PASSWORD_LENGTH 12
@@ -460,6 +460,7 @@ command_result ConnectedClient::handleCommandSetClientChannelGroup(Command &cmd)
}
}
//TODO: When using new VS model, check for a temporary assignment!
this->server->groups->setChannelGroup(target_cldbid, serverGroup, channel);
for (const auto &targetClient : this->server->findClientsByCldbId(target_cldbid)) {
unique_lock client_channel_lock_w(targetClient->channel_lock);