diff options
author | George Hazan <george.hazan@gmail.com> | 2013-10-02 19:38:44 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-10-02 19:38:44 +0000 |
commit | 8fecb411c56387ef6db40abe96b8c935fddc6083 (patch) | |
tree | 3aee9abef3610ab248bba34af1bd4878038d130f /protocols/JabberG/src/jabber_svc.cpp | |
parent | f7e58cf1bf50928ae22ffbdd9de99844407d5780 (diff) |
atavism extincted: old nasty IQ handler mechanism
git-svn-id: http://svn.miranda-ng.org/main/trunk@6312 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src/jabber_svc.cpp')
-rw-r--r-- | protocols/JabberG/src/jabber_svc.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/protocols/JabberG/src/jabber_svc.cpp b/protocols/JabberG/src/jabber_svc.cpp index 34ee8b4480..6fe92b789f 100644 --- a/protocols/JabberG/src/jabber_svc.cpp +++ b/protocols/JabberG/src/jabber_svc.cpp @@ -159,13 +159,9 @@ INT_PTR __cdecl CJabberProto::JabberGetAvatarInfo(WPARAM wParam, LPARAM lParam) Log("Rereading %s for %S", isXVcard ? JABBER_FEAT_VCARD_TEMP : JABBER_FEAT_AVATAR, szJid);
- int iqId = SerialNext();
- if (isXVcard)
- IqAdd(iqId, IQ_PROC_NONE, &CJabberProto::OnIqResultGetVCardAvatar);
- else
- IqAdd(iqId, IQ_PROC_NONE, &CJabberProto::OnIqResultGetClientAvatar);
-
- XmlNodeIq iq(_T("get"), iqId, szJid);
+ XmlNodeIq iq(
+ AddIQ((isXVcard) ? &CJabberProto::OnIqResultGetVCardAvatar : &CJabberProto::OnIqResultGetClientAvatar,
+ JABBER_IQ_TYPE_GET, szJid));
if (isXVcard)
iq << XCHILDNS(_T("vCard"), JABBER_FEAT_VCARD_TEMP);
else
|