diff options
author | George Hazan <george.hazan@gmail.com> | 2013-07-10 20:22:55 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-07-10 20:22:55 +0000 |
commit | 1949517360bffdb5fa747f3ed5f4ec4e78c14905 (patch) | |
tree | 3a3408a063d21e3484bb92390600378cd4e0fe2f /protocols/IcqOscarJ/src/icq_xstatus.cpp | |
parent | b7639142c91c6fa38285fdc6de661a0b36d41fbe (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/icq_xstatus.cpp')
-rw-r--r-- | protocols/IcqOscarJ/src/icq_xstatus.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/protocols/IcqOscarJ/src/icq_xstatus.cpp b/protocols/IcqOscarJ/src/icq_xstatus.cpp index 9f6222bf8e..fcf52931da 100644 --- a/protocols/IcqOscarJ/src/icq_xstatus.cpp +++ b/protocols/IcqOscarJ/src/icq_xstatus.cpp @@ -428,7 +428,7 @@ void CIcqProto::handleXStatusCaps(DWORD dwUIN, char *szUID, HANDLE hContact, BYT if (nOldXStatusID != bXStatusId) {
setByte(hContact, DBSETTING_XSTATUS_ID, bXStatusId);
db_set_utf(hContact, m_szModuleName, DBSETTING_XSTATUS_NAME, ICQTranslateUtfStatic(nameXStatus[i], str, MAX_PATH));
- db_unset(hContact, m_szModuleName, DBSETTING_XSTATUS_MSG);
+ delSetting(hContact, DBSETTING_XSTATUS_MSG);
NetLog_Server("%s changed mood to %s.", strUID(dwUIN, szUID), ICQTranslateUtfStatic(nameXStatus[i], str, MAX_PATH));
bChanged = TRUE;
@@ -461,7 +461,7 @@ void CIcqProto::handleXStatusCaps(DWORD dwUIN, char *szUID, HANDLE hContact, BYT if (nMoodID == 0 && nOldXStatusID != bXStatusId) {
setByte(hContact, DBSETTING_XSTATUS_ID, bXStatusId);
db_set_utf(hContact, m_szModuleName, DBSETTING_XSTATUS_NAME, ICQTranslateUtfStatic(nameXStatus[i], str, MAX_PATH));
- db_unset(hContact, m_szModuleName, DBSETTING_XSTATUS_MSG);
+ delSetting(hContact, DBSETTING_XSTATUS_MSG);
NetLog_Server("%s changed custom status to %s.", strUID(dwUIN, szUID), ICQTranslateUtfStatic(nameXStatus[i], str, MAX_PATH));
bChanged = TRUE;
@@ -486,9 +486,9 @@ void CIcqProto::handleXStatusCaps(DWORD dwUIN, char *szUID, HANDLE hContact, BYT if ((nCustomStatusID == 0 && (caps || !m_bXStatusEnabled)) && (nMoodID == 0 && (moods || !m_bMoodsEnabled))) {
if (getByte(hContact, DBSETTING_XSTATUS_ID, -1) != -1)
bChanged = TRUE;
- db_unset(hContact, m_szModuleName, DBSETTING_XSTATUS_ID);
- db_unset(hContact, m_szModuleName, DBSETTING_XSTATUS_NAME);
- db_unset(hContact, m_szModuleName, DBSETTING_XSTATUS_MSG);
+ delSetting(hContact, DBSETTING_XSTATUS_ID);
+ delSetting(hContact, DBSETTING_XSTATUS_NAME);
+ delSetting(hContact, DBSETTING_XSTATUS_MSG);
}
if (m_bXStatusEnabled != 10 && m_bMoodsEnabled != 10)
@@ -823,8 +823,8 @@ void CIcqProto::setXStatusEx(BYTE bXStatus, BYTE bQuiet) }
else {
setByte(DBSETTING_XSTATUS_ID, bXStatus);
- db_unset(NULL, m_szModuleName, DBSETTING_XSTATUS_NAME);
- db_unset(NULL, m_szModuleName, DBSETTING_XSTATUS_MSG);
+ delSetting(DBSETTING_XSTATUS_NAME);
+ delSetting(DBSETTING_XSTATUS_MSG);
updateServerCustomStatus(TRUE);
}
|