tuned 2000 chars limit to only chat lobby traffic

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6745 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2013-09-17 05:55:43 +00:00
parent 4ee7d8bb7e
commit 6052f2042f

View File

@ -1079,7 +1079,7 @@ void p3ChatService::handleRecvChatAvatarItem(RsChatAvatarItem *ca)
bool p3ChatService::checkForMessageSecurity(RsChatMsgItem *ci)
{
// Remove too big messages
if (ci->message.length() > 2000)
if (ci->message.length() > 2000 && ci->chatFlags & RS_CHAT_FLAG_LOBBY)
{
wchar_t tmp[300];
mbstowcs(tmp, rsPeers->getPeerName(ci->PeerId()).c_str(), 299);