summaryrefslogtreecommitdiff
path: root/plugins/StopSpamMod/src/utilities.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-04-05 22:27:16 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-04-05 22:27:16 +0000
commit007b4c7301f0d26a72f89f74e9929f42e24eb3e6 (patch)
treeb1ee30b70c6e36d1a06aed6885cb80dc560a68ca /plugins/StopSpamMod/src/utilities.cpp
parentf4a1bbc6ba4b8137cb868639ac146aa97e97e9df (diff)
- rest of menus cleared;
- old database macroses wiped out from all plugins (left in m_database.h for compatibility) git-svn-id: http://svn.miranda-ng.org/main/trunk@4324 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/StopSpamMod/src/utilities.cpp')
-rwxr-xr-xplugins/StopSpamMod/src/utilities.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/StopSpamMod/src/utilities.cpp b/plugins/StopSpamMod/src/utilities.cpp
index 0ce304e59f..efef2f9e02 100755
--- a/plugins/StopSpamMod/src/utilities.cpp
+++ b/plugins/StopSpamMod/src/utilities.cpp
@@ -21,24 +21,24 @@
tstring DBGetContactSettingStringPAN(HANDLE hContact, char const * szModule, char const * szSetting, tstring errorValue)
{
DBVARIANT dbv;
- //if(DBGetContactSetting(hContact, szModule, szSetting, &dbv))
+ //if(db_get(hContact, szModule, szSetting, &dbv))
if(db_get_ts(hContact, szModule, szSetting, &dbv))
return errorValue;
// if(DBVT_TCHAR == dbv.type )
errorValue = dbv.ptszVal;
- DBFreeVariant(&dbv);
+ db_free(&dbv);
return errorValue;
}
std::string DBGetContactSettingStringPAN_A(HANDLE hContact, char const * szModule, char const * szSetting, std::string errorValue)
{
DBVARIANT dbv;
- //if(DBGetContactSetting(hContact, szModule, szSetting, &dbv))
+ //if(db_get(hContact, szModule, szSetting, &dbv))
if(db_get_s(hContact, szModule, szSetting, &dbv))
return errorValue;
// if(DBVT_ASCIIZ == dbv.type )
errorValue = dbv.pszVal;
- DBFreeVariant(&dbv);
+ db_free(&dbv);
return errorValue;
}
@@ -119,7 +119,7 @@ void RemoveExcludedUsers()
if(hContact)
{
do{
- if(DBGetContactSettingByte(hContact, "CList", "NotOnList", 0) && DBGetContactSettingByte(hContact, pluginName, "Excluded", 0))
+ if(db_get_b(hContact, "CList", "NotOnList", 0) && db_get_b(hContact, pluginName, "Excluded", 0))
{
plist->hContact = hContact;
plist->next = new hContact_entry;
@@ -136,7 +136,7 @@ void RemoveExcludedUsers()
if(status>= ID_STATUS_CONNECTING && status <= ID_STATUS_OFFLINE){
LogSpamToFile(plist->hContact, _T("Mark for delete"));
- DBWriteContactSettingByte(plist->hContact,"CList","Delete", 1);
+ db_set_b(plist->hContact,"CList","Delete", 1);
}else{
LogSpamToFile(plist->hContact, _T("Deleted"));
CallService(MS_DB_CONTACT_DELETE, (WPARAM)plist->hContact, 0);
@@ -160,7 +160,7 @@ void RemoveTemporaryUsers()
if(hContact)
{
do{
- if(DBGetContactSettingByte(hContact, "CList", "NotOnList", 0)||
+ if(db_get_b(hContact, "CList", "NotOnList", 0)||
(_T("Not In List")== DBGetContactSettingStringPAN(hContact,"CList","Group",_T("")))
)
{
@@ -179,7 +179,7 @@ void RemoveTemporaryUsers()
if(status>= ID_STATUS_CONNECTING && status <= ID_STATUS_OFFLINE){
LogSpamToFile(plist->hContact, _T("Mark for delete"));
- DBWriteContactSettingByte(plist->hContact,"CList","Delete", 1);
+ db_set_b(plist->hContact,"CList","Delete", 1);
}else{
LogSpamToFile(plist->hContact, _T("Deleted"));
CallService(MS_DB_CONTACT_DELETE, (WPARAM)plist->hContact, 0);