diff options
author | George Hazan <george.hazan@gmail.com> | 2013-07-28 12:01:09 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-07-28 12:01:09 +0000 |
commit | 2e2d9de08e3eb747f88cd3a9aeb750a3c34078a7 (patch) | |
tree | 7b0774375566185dc27d708b2d7aadd8f9a81eca /protocols/JabberG/src/jabber_iqid.cpp | |
parent | ae3cee537d478fba0f32e561a12d62213a85a4d5 (diff) |
code adaptation for getTStringA
git-svn-id: http://svn.miranda-ng.org/main/trunk@5508 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src/jabber_iqid.cpp')
-rw-r--r-- | protocols/JabberG/src/jabber_iqid.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/protocols/JabberG/src/jabber_iqid.cpp b/protocols/JabberG/src/jabber_iqid.cpp index b45bdfe821..d36c82292d 100644 --- a/protocols/JabberG/src/jabber_iqid.cpp +++ b/protocols/JabberG/src/jabber_iqid.cpp @@ -331,7 +331,7 @@ void CJabberProto::OnIqResultSession(HXML iqNode, CJabberIqInfo* pInfo) void CJabberProto::GroupchatJoinByHContact(HANDLE hContact, bool autojoin)
{
- ptrT roomjid( db_get_tsa(hContact, m_szModuleName, "ChatRoomID"));
+ ptrT roomjid( getTStringA(hContact, "ChatRoomID"));
if (roomjid == NULL)
return;
@@ -342,7 +342,7 @@ void CJabberProto::GroupchatJoinByHContact(HANDLE hContact, bool autojoin) server[0] = 0; server++;
- ptrT nick( db_get_tsa(hContact, m_szModuleName, "MyNick"));
+ ptrT nick( getTStringA(hContact, "MyNick"));
if (nick == NULL) {
nick = JabberNickFromJID(m_szJabberJID);
if (nick == NULL)
@@ -520,7 +520,7 @@ void CJabberProto::OnIqResultGetRoster(HXML iqNode, CJabberIqInfo* pInfo) if (m_options.RosterSync == TRUE) {
for (HANDLE hContact = db_find_first(m_szModuleName); hContact; ) {
HANDLE hNext = db_find_next(hContact, m_szModuleName);
- ptrT jid( db_get_tsa(hContact, m_szModuleName, "jid"));
+ ptrT jid( getTStringA(hContact, "jid"));
if (jid != NULL && !ListGetItemPtr(LIST_ROSTER, jid)) {
Log("Syncing roster: preparing to delete %S (hContact=0x%x)", jid, hContact);
CallService(MS_DB_CONTACT_DELETE, (WPARAM)hContact, 0);
@@ -1028,10 +1028,10 @@ void CJabberProto::OnIqResultGetVcard(HXML iqNode) } }
if (hasFn && !hasNick) {
- ptrT nick( db_get_tsa(hContact, m_szModuleName, "Nick"));
+ ptrT nick( getTStringA(hContact, "Nick"));
ptrT jidNick( JabberNickFromJID(jid));
if (!nick || (jidNick && !_tcsicmp(nick, jidNick)))
- setTString(hContact, "Nick", ptrT( db_get_tsa(hContact, m_szModuleName, "FullName")));
+ setTString(hContact, "Nick", ptrT( getTStringA(hContact, "FullName")));
}
if ( !hasFn)
delSetting(hContact, "FullName");
|