mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
strip newlines from msg in cmdRoomSay; improved i18n in MessageLogWidget
This commit is contained in:
parent
9090bc333c
commit
f10d9c9bec
18 changed files with 10655 additions and 3444 deletions
|
|
@ -468,8 +468,9 @@ ResponseCode Server_ProtocolHandler::cmdRoomSay(Command_RoomSay *cmd, CommandCon
|
|||
if ((totalSize > server->getMaxMessageSizePerInterval()) || (totalCount > server->getMaxMessageCountPerInterval()))
|
||||
return RespChatFlood;
|
||||
}
|
||||
msg.replace(QChar('\n'), QChar(' '));
|
||||
|
||||
room->say(this, cmd->getMessage());
|
||||
room->say(this, msg);
|
||||
return RespOk;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue