summaryrefslogtreecommitdiff
path: root/protocols/JabberG
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-09-27 21:03:26 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-09-27 21:03:26 +0000
commitbd6b5abd84459ee4aaced4a99c05de6a8e849285 (patch)
treec3a4cf1afac3b6d7760deb723fa97967d924c57c /protocols/JabberG
parenta6f7dad63439692e33d74030959aef1a27c7a335 (diff)
fix for a XML query
git-svn-id: http://svn.miranda-ng.org/main/trunk@6254 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG')
-rw-r--r--protocols/JabberG/src/jabber_events.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/JabberG/src/jabber_events.cpp b/protocols/JabberG/src/jabber_events.cpp
index 0a2f056478..b4fc432a5d 100644
--- a/protocols/JabberG/src/jabber_events.cpp
+++ b/protocols/JabberG/src/jabber_events.cpp
@@ -162,10 +162,10 @@ void __cdecl CJabberProto::OnAddContactForever(DBCONTACTWRITESETTING *cws, HANDL
AddContactToRoster(jid, nick, ptrT( db_get_tsa(hContact, "CList", "Group")));
- HXML xPresence = XmlNode(_T("presence")) << XATTR(_T("to"), jid) << XATTR(_T("type"), _T("subscribe"));
+ XmlNode xPresence(_T("presence")); xPresence << XATTR(_T("to"), LPCTSTR(jid)) << XATTR(_T("type"), _T("subscribe"));
ptrT myNick( getTStringA(NULL, "Nick"));
if (myNick != NULL)
- xPresence << XCHILD(_T("nick"), myNick) << XATTR(_T("xmlns"), JABBER_FEAT_NICK);
+ xPresence << XCHILD(_T("nick"), LPCTSTR(myNick)) << XATTR(_T("xmlns"), JABBER_FEAT_NICK);
m_ThreadInfo->send(xPresence);
SendGetVcard(jid);