summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2023-03-07 19:34:35 +0300
committerGeorge Hazan <ghazan@miranda.im>2023-03-07 19:34:35 +0300
commit850a00c142b3c7c854a1673691c8dc6c2d08679e (patch)
tree3de68c85efe0672e9991bf855838bdee36c7815b
parent92adecd638db5510fc8e258a519b2f4a225c4573 (diff)
Jabber: fix for the custom nick assigning
-rw-r--r--protocols/JabberG/src/jabber_groupchat.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/protocols/JabberG/src/jabber_groupchat.cpp b/protocols/JabberG/src/jabber_groupchat.cpp
index 626add3738..51df44cf9a 100644
--- a/protocols/JabberG/src/jabber_groupchat.cpp
+++ b/protocols/JabberG/src/jabber_groupchat.cpp
@@ -762,9 +762,8 @@ void CJabberProto::RenameParticipantNick(JABBER_LIST_ITEM *item, const char *old
if (!mir_strcmp(item->nick, oldNick)) {
replaceStr(item->nick, newNick);
- MCONTACT hContact = HContactFromJID(item->jid);
- if (hContact != 0)
- setUString(hContact, "MyNick", newNick);
+ if (item->hContact)
+ setUString(item->hContact, "MyNick", newNick);
}
Chat_ChangeUserId(item->si, Utf2T(oldNick), Utf2T(newNick));