diff options
-rw-r--r-- | protocols/JabberG/src/jabber_chat.cpp | 2 | ||||
-rw-r--r-- | protocols/JabberG/src/jabber_thread.cpp | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/protocols/JabberG/src/jabber_chat.cpp b/protocols/JabberG/src/jabber_chat.cpp index 41452c3843..b5e6ea0ce5 100644 --- a/protocols/JabberG/src/jabber_chat.cpp +++ b/protocols/JabberG/src/jabber_chat.cpp @@ -1376,7 +1376,7 @@ static void sttSendPrivateMessage(CJabberProto *ppro, JABBER_LIST_ITEM *item, co int CJabberProto::JabberGcEventHook(WPARAM, LPARAM lParam)
{
- GCHOOK* gch = (GCHOOK*)lParam;
+ GCHOOK *gch = (GCHOOK*)lParam;
if (gch == NULL)
return 0;
diff --git a/protocols/JabberG/src/jabber_thread.cpp b/protocols/JabberG/src/jabber_thread.cpp index 9a61d52b99..e481236453 100644 --- a/protocols/JabberG/src/jabber_thread.cpp +++ b/protocols/JabberG/src/jabber_thread.cpp @@ -2010,8 +2010,7 @@ int ThreadData::send(HXML node) for (TCHAR *p = str; *p; ++p) {
WCHAR c = *p;
-
- if (c < 0x9 || c > 0x9 && c < 0xA || c > 0xA && c < 0xD || c > 0xD && c < 0x20 || c > 0xD7FF && c < 0xE000 || c > 0xFFFD)
+ if (c < 32 && c != '\t' && c != '\n' && c != '\r')
continue;
*q++ = *p;
|