mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-28 08:48:48 +02:00
Fix typo
This commit is contained in:
parent
675e7c3110
commit
2a717a6d66
@ -489,7 +489,7 @@ void LobbyServer::receiveSendChatMessage(const NetworkConnectionPtr & connection
|
||||
std::string channelName = json["channelName"].String();
|
||||
std::string displayName = database->getAccountDisplayName(senderAccountID);
|
||||
|
||||
if(TextOperations::isValidUnicodeString(messageText))
|
||||
if(!TextOperations::isValidUnicodeString(messageText))
|
||||
return sendOperationFailed(connection, "String contains invalid characters!");
|
||||
|
||||
std::string messageTextClean = sanitizeChatMessage(messageText);
|
||||
|
Loading…
Reference in New Issue
Block a user