diff options
author | George Hazan <ghazan@miranda.im> | 2020-07-12 17:27:45 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-07-12 17:27:45 +0300 |
commit | d10fcec7752615894ccfe356f5ec14b2eb2a8b0b (patch) | |
tree | 5a0006251d46b4d3204d3a3b7ea6427847592fa3 /protocols/JabberG/src/jabber_util.cpp | |
parent | fb46006c0aa2f5829fa80cf1cfbaa57900ff202b (diff) |
minor code cleaning
Diffstat (limited to 'protocols/JabberG/src/jabber_util.cpp')
-rwxr-xr-x | protocols/JabberG/src/jabber_util.cpp | 2 |
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);
|