strip newlines from msg in cmdRoomSay; improved i18n in MessageLogWidget

This commit is contained in:
Max-Wilhelm Bruker
2011-07-06 18:45:56 +02:00
parent 9090bc333c
commit f10d9c9bec
18 changed files with 10655 additions and 3444 deletions

View File

@@ -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;
}