summaryrefslogtreecommitdiff
path: root/protocols/IcqOscarJ/src/fam_03buddy.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-07-10 20:22:55 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-07-10 20:22:55 +0000
commit1949517360bffdb5fa747f3ed5f4ec4e78c14905 (patch)
tree3a3408a063d21e3484bb92390600378cd4e0fe2f /protocols/IcqOscarJ/src/fam_03buddy.cpp
parentb7639142c91c6fa38285fdc6de661a0b36d41fbe (diff)
protocol DB helpers for ICQ
git-svn-id: http://svn.miranda-ng.org/main/trunk@5317 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/IcqOscarJ/src/fam_03buddy.cpp')
-rw-r--r--protocols/IcqOscarJ/src/fam_03buddy.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/protocols/IcqOscarJ/src/fam_03buddy.cpp b/protocols/IcqOscarJ/src/fam_03buddy.cpp
index 0d5010bb74..b6baeda2d0 100644
--- a/protocols/IcqOscarJ/src/fam_03buddy.cpp
+++ b/protocols/IcqOscarJ/src/fam_03buddy.cpp
@@ -504,10 +504,10 @@ void CIcqProto::handleUserOnline(BYTE *buf, WORD wLen, serverthread_info *info)
}
else
{
- db_unset(hContact, m_szModuleName, "DirectCookie");
- db_unset(hContact, m_szModuleName, "DCType");
- db_unset(hContact, m_szModuleName, "UserPort");
- db_unset(hContact, m_szModuleName, "Version");
+ delSetting(hContact, "DirectCookie");
+ delSetting(hContact, "DCType");
+ delSetting(hContact, "UserPort");
+ delSetting(hContact, "Version");
}
if (!szClient)
@@ -747,7 +747,7 @@ void CIcqProto::parseStatusNote(DWORD dwUin, char *szUid, HANDLE hContact, oscar
if (szStatusNote)
db_set_utf(hContact, m_szModuleName, DBSETTING_STATUS_NOTE, szStatusNote);
else
- db_unset(hContact, m_szModuleName, DBSETTING_STATUS_NOTE);
+ delSetting(hContact, DBSETTING_STATUS_NOTE);
setDword(hContact, DBSETTING_STATUS_NOTE_TIME, dwStatusNoteTS);
if (getContactXStatus(hContact) != 0 || !CheckContactCapabilities(hContact, CAPF_STATUS_MESSAGES)) {
@@ -765,7 +765,7 @@ void CIcqProto::parseStatusNote(DWORD dwUin, char *szUid, HANDLE hContact, oscar
if (getContactStatus(hContact) == ID_STATUS_OFFLINE)
{
setStatusMsgVar(hContact, NULL, false);
- db_unset(hContact, m_szModuleName, DBSETTING_STATUS_NOTE);
+ delSetting(hContact, DBSETTING_STATUS_NOTE);
setDword(hContact, DBSETTING_STATUS_NOTE_TIME, dwStatusNoteTS);
}
}