summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_iqid.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-03-11 14:28:14 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-03-11 14:28:14 +0300
commit647b4697b51d8a3cf52b7c0312b6adc89e4cf395 (patch)
tree40b0c156db23439065915794adac9be987630476 /protocols/JabberG/src/jabber_iqid.cpp
parent28de0d3f863cecdb9fb13c40abbbfa301da9ae33 (diff)
Jabber: more fool-proof check for empty nicks
Diffstat (limited to 'protocols/JabberG/src/jabber_iqid.cpp')
-rwxr-xr-xprotocols/JabberG/src/jabber_iqid.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/JabberG/src/jabber_iqid.cpp b/protocols/JabberG/src/jabber_iqid.cpp
index 0a40a61b8b..ae375fc6f8 100755
--- a/protocols/JabberG/src/jabber_iqid.cpp
+++ b/protocols/JabberG/src/jabber_iqid.cpp
@@ -277,8 +277,8 @@ void CJabberProto::OnIqResultSetAuth(const TiXmlElement *iqNode, CJabberIqInfo*)
if ((type = XmlGetAttr(iqNode, "type")) == nullptr) return;
if (!mir_strcmp(type, "result")) {
- ptrA tszNick(getUStringA("Nick"));
- if (tszNick == nullptr)
+ ptrA szNick(getUStringA("Nick"));
+ if (!mir_strlen(szNick))
setUString("Nick", m_ThreadInfo->conn.username);
OnLoggedIn();