diff options
author | George Hazan <ghazan@miranda.im> | 2019-02-25 13:48:11 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-02-25 13:48:11 +0300 |
commit | 32959b018c14782f29db4fa5dd4bd76ae96bd511 (patch) | |
tree | a81d0d1249fc6edc6bbac7e6cb0d3e3fabb6c3e5 /protocols/JabberG | |
parent | 00ae70471a12312d5094016bd44917fa0cf77973 (diff) |
in this case there's no sense to use GetClientJID at all...
Diffstat (limited to 'protocols/JabberG')
-rwxr-xr-x | protocols/JabberG/src/jabber_proto.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/JabberG/src/jabber_proto.cpp b/protocols/JabberG/src/jabber_proto.cpp index f213af7ef6..ea269c7dfe 100755 --- a/protocols/JabberG/src/jabber_proto.cpp +++ b/protocols/JabberG/src/jabber_proto.cpp @@ -605,12 +605,12 @@ int CJabberProto::GetInfo(MCONTACT hContact, int /*infoType*/) if (!m_bJabberOnline || isChatRoom(hContact))
return 1;
- char jid[JABBER_MAX_JID_LEN], szBareJid[JABBER_MAX_JID_LEN];
- if (!GetClientJID(hContact, jid, _countof(jid)))
+ ptrA jid(getUStringA("jid"));
+ if (!jid)
return 1;
+ char szBareJid[JABBER_MAX_JID_LEN];
JabberStripJid(jid, szBareJid, _countof(szBareJid));
- bool bUseResource = ListGetItemPtr(LIST_CHATROOM, szBareJid) != nullptr;
if (m_ThreadInfo) {
m_ThreadInfo->send(
@@ -657,7 +657,7 @@ int CJabberProto::GetInfo(MCONTACT hContact, int /*infoType*/) }
}
- SendGetVcard(bUseResource ? jid : szBareJid);
+ SendGetVcard(jid);
return 0;
}
|