From 235a18977489137648abd4b729575a5ba54d4471 Mon Sep 17 00:00:00 2001 From: csoler Date: Tue, 17 Sep 2013 05:57:02 +0000 Subject: [PATCH] tuned 2000 chars limit to only chat lobby traffic git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6746 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/services/p3chatservice.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libretroshare/src/services/p3chatservice.cc b/libretroshare/src/services/p3chatservice.cc index 37e33d9b5..620d5814d 100644 --- a/libretroshare/src/services/p3chatservice.cc +++ b/libretroshare/src/services/p3chatservice.cc @@ -1079,7 +1079,7 @@ void p3ChatService::handleRecvChatAvatarItem(RsChatAvatarItem *ca) bool p3ChatService::checkForMessageSecurity(RsChatMsgItem *ci) { // Remove too big messages - if (ci->message.length() > 2000 && ci->chatFlags & RS_CHAT_FLAG_LOBBY) + if (ci->message.length() > 2000 && (ci->chatFlags & RS_CHAT_FLAG_LOBBY)) { wchar_t tmp[300]; mbstowcs(tmp, rsPeers->getPeerName(ci->PeerId()).c_str(), 299);