summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-09-20 20:28:16 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-09-20 20:28:16 +0000
commit6de98d148e6fcef514c283e9fc1c0e2cc2592300 (patch)
treee5cd84828294055945d812e19fe2689308eaa986 /protocols/JabberG/src
parentff9844970faab387450c69cdabc1daadb5ff681f (diff)
custom unicode symbols verifier removed
git-svn-id: http://svn.miranda-ng.org/main/trunk@15411 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src')
-rw-r--r--protocols/JabberG/src/jabber_chat.cpp2
-rw-r--r--protocols/JabberG/src/jabber_thread.cpp3
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;