summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_iqid.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-07-10 13:54:28 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-07-10 13:54:28 +0000
commit3bcc4ebb3e1a43574fb934a80903feaa56642089 (patch)
tree254424be4b3f19e17a089bee94c66ce2acac0106 /protocols/JabberG/src/jabber_iqid.cpp
parentd5d50b471277d5d69f59a8f29bf87201149ce191 (diff)
obsolete helper removed
git-svn-id: http://svn.miranda-ng.org/main/trunk@5306 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
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();
}