summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-05-17 17:52:28 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-05-17 17:52:28 +0000
commit457ab3f46ff28872cc4b706b21a58a1b5b02f74f (patch)
tree35c4d55221608a1a69d10ccdc9955571740c3174
parent4d7fb80e18aa7b131bae7a0a55efb5d4a5097866 (diff)
fixes bug #1240 (Can't send private messages via chatroom)
git-svn-id: http://svn.miranda-ng.org/main/trunk@16840 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--protocols/JabberG/src/jabber_misc.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/protocols/JabberG/src/jabber_misc.cpp b/protocols/JabberG/src/jabber_misc.cpp
index e0ed5736e2..83dd08c586 100644
--- a/protocols/JabberG/src/jabber_misc.cpp
+++ b/protocols/JabberG/src/jabber_misc.cpp
@@ -121,6 +121,10 @@ MCONTACT CJabberProto::DBCreateContact(const TCHAR *jid, const TCHAR *nick, bool
db_set_b(hNewContact, "CList", "NotOnList", 1);
else
SendGetVcard(s);
+
+ if (JABBER_LIST_ITEM *pItem = ListAdd(LIST_ROSTER, jid, hNewContact))
+ pItem->bUseResource = !stripResource;
+
debugLog(_T("Create Jabber contact jid=%s, nick=%s"), s, nick);
DBCheckIsTransportedContact(s, hNewContact);
return hNewContact;