totally fucked up

This commit is contained in:
WolverinDEV
2020-03-17 12:08:07 +01:00
parent 58666b8906
commit d6f483a019
43 changed files with 1155 additions and 985 deletions
+2 -2
View File
@@ -569,7 +569,7 @@ command_result ConnectedClient::handleCommandSendTextMessage(Command &cmd) {
if(this->handleTextMessage(ChatMessageMode::TEXTMODE_SERVER, cmd["msg"], nullptr)) return command_result{error::ok};
for(const auto& client : this->server->getClients()) {
if (client->connectionState() != ConnectionState::CONNECTED)
if (client->connectionState() != ClientState::CONNECTED)
continue;
auto type = client->getType();
@@ -2526,7 +2526,7 @@ command_result ConnectedClient::handleCommandConversationMessageDelete(ts::Comma
auto delete_count = current_conversation->delete_messages(timestamp_end, limit, timestamp_begin, bulk["cldbid"]);
if(delete_count > 0) {
for(const auto& client : ref_server->getClients()) {
if(client->connectionState() != ConnectionState::CONNECTED)
if(client->connectionState() != ClientState::CONNECTED)
continue;
auto type = client->getType();