summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_iq_handlers.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/JabberG/src/jabber_iq_handlers.cpp')
-rw-r--r--protocols/JabberG/src/jabber_iq_handlers.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/protocols/JabberG/src/jabber_iq_handlers.cpp b/protocols/JabberG/src/jabber_iq_handlers.cpp
index de7ab1f006..f769f5ed2e 100644
--- a/protocols/JabberG/src/jabber_iq_handlers.cpp
+++ b/protocols/JabberG/src/jabber_iq_handlers.cpp
@@ -556,14 +556,12 @@ BOOL CJabberProto::OnRosterPushRequest(HXML, CJabberIqInfo *pInfo)
else setTString(hContact, "jid", jid);
if (name != NULL) {
- DBVARIANT dbnick;
- if ( !getTString(hContact, "Nick", &dbnick)) {
- if (_tcscmp(nick, dbnick.ptszVal) != 0)
+ ptrT tszNick( getTStringA(hContact, "Nick"));
+ if (tszNick != NULL) {
+ if (_tcscmp(nick, tszNick) != 0)
db_set_ts(hContact, "CList", "MyHandle", nick);
else
db_unset(hContact, "CList", "MyHandle");
-
- db_free(&dbnick);
}
else db_set_ts(hContact, "CList", "MyHandle", nick);
}