summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_iqid.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/JabberG/src/jabber_iqid.cpp')
-rw-r--r--protocols/JabberG/src/jabber_iqid.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/protocols/JabberG/src/jabber_iqid.cpp b/protocols/JabberG/src/jabber_iqid.cpp
index 120109c9ad..a099108366 100644
--- a/protocols/JabberG/src/jabber_iqid.cpp
+++ b/protocols/JabberG/src/jabber_iqid.cpp
@@ -209,13 +209,11 @@ void CJabberProto::OnLoggedIn()
QueryPrivacyLists(m_ThreadInfo);
- char szServerName[ sizeof(m_ThreadInfo->server) ];
- if (JGetStaticString("LastLoggedServer", NULL, szServerName, sizeof(szServerName)))
+ ptrA szServerName( getStringA("LastLoggedServer"));
+ if (szServerName == NULL || strcmp(m_ThreadInfo->server, szServerName))
SendGetVcard(m_szJabberJID);
- else if (strcmp(m_ThreadInfo->server, szServerName))
- SendGetVcard(m_szJabberJID);
- setString("LastLoggedServer", m_ThreadInfo->server);
+ setString("LastLoggedServer", m_ThreadInfo->server);
m_pepServices.ResetPublishAll();
}