summaryrefslogtreecommitdiff
path: root/protocols/JabberG
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-07-12 17:27:45 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-07-12 17:27:45 +0300
commitd10fcec7752615894ccfe356f5ec14b2eb2a8b0b (patch)
tree5a0006251d46b4d3204d3a3b7ea6427847592fa3 /protocols/JabberG
parentfb46006c0aa2f5829fa80cf1cfbaa57900ff202b (diff)
minor code cleaning
Diffstat (limited to 'protocols/JabberG')
-rwxr-xr-xprotocols/JabberG/src/jabber_util.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/JabberG/src/jabber_util.cpp b/protocols/JabberG/src/jabber_util.cpp
index e54b85b618..a1f80b2244 100755
--- a/protocols/JabberG/src/jabber_util.cpp
+++ b/protocols/JabberG/src/jabber_util.cpp
@@ -586,7 +586,7 @@ char* CJabberProto::GetClientJID(const char *jid, char *dest, size_t destLen)
mir_cslock lck(m_csLists);
JABBER_LIST_ITEM *LI = ListGetItemPtr(LIST_ROSTER, jid);
if (LI != nullptr) {
- if (strchr(dest, '/')) {
+ if (strchr(dest, '/') == nullptr) {
pResourceStatus r(LI->getBestResource());
if (r != nullptr)
strncpy_s(dest, destLen, MakeJid(jid, r->m_szResourceName), _TRUNCATE);