diff options
author | George Hazan <george.hazan@gmail.com> | 2016-04-12 14:53:23 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2016-04-12 14:53:23 +0000 |
commit | 1bc1672368e1ba87a68fca21b846c70156e71f05 (patch) | |
tree | f4265b4e50fedd1f149be0c136e2b28088522850 /protocols/JabberG/src/jabber_util.cpp | |
parent | bdb3f0597f6ac1eac050a68053d2c4acebdf644d (diff) |
jabber: shit wiping began
git-svn-id: http://svn.miranda-ng.org/main/trunk@16633 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src/jabber_util.cpp')
-rw-r--r-- | protocols/JabberG/src/jabber_util.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/protocols/JabberG/src/jabber_util.cpp b/protocols/JabberG/src/jabber_util.cpp index 3b7ab9152f..8d1d1e7c72 100644 --- a/protocols/JabberG/src/jabber_util.cpp +++ b/protocols/JabberG/src/jabber_util.cpp @@ -55,7 +55,7 @@ MCONTACT CJabberProto::ChatRoomHContactFromJID(const TCHAR *jid) ///////////////////////////////////////////////////////////////////////////////
// JabberHContactFromJID - looks for the MCONTACT with required JID
-MCONTACT CJabberProto::HContactFromJID(const TCHAR *jid, BOOL bStripResource)
+MCONTACT CJabberProto::HContactFromJID(const TCHAR *jid, bool bStripResource)
{
if (jid == NULL)
return NULL;
@@ -71,17 +71,14 @@ MCONTACT CJabberProto::HContactFromJID(const TCHAR *jid, BOOL bStripResource) if (item != NULL)
result = mir_tstrcmpi(jid, dbJid);
else {
- if (bStripResource == 3) {
+ if (bStripResource) {
if (bIsChat)
result = mir_tstrcmpi(jid, dbJid); // for chat room we have to have full contact matched
- else if (TRUE)
- result = _tcsnicmp(jid, dbJid, mir_tstrlen(dbJid));
else
- result = JabberCompareJids(jid, dbJid);
+ result = _tcsnicmp(jid, dbJid, mir_tstrlen(dbJid));
}
// most probably it should just look full matching contact
- else
- result = mir_tstrcmpi(jid, dbJid);
+ else result = mir_tstrcmpi(jid, dbJid);
}
if (result == 0)
|