summaryrefslogtreecommitdiff
path: root/plugins/StopSpamMod
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-06-27 21:23:35 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-06-27 21:23:35 +0300
commit44525f461757fc859616fda16820351b07238842 (patch)
tree117ad05514eed381fc13dcf8befcf0ff06023e57 /plugins/StopSpamMod
parent810ed4dea67b54a18f6ec3f5273d2f8efe08708c (diff)
manual access to CList/Group restricted
Diffstat (limited to 'plugins/StopSpamMod')
-rwxr-xr-xplugins/StopSpamMod/src/stopspam.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/StopSpamMod/src/stopspam.cpp b/plugins/StopSpamMod/src/stopspam.cpp
index c9b460211c..b3035150e4 100755
--- a/plugins/StopSpamMod/src/stopspam.cpp
+++ b/plugins/StopSpamMod/src/stopspam.cpp
@@ -46,7 +46,7 @@ int OnDbEventAdded(WPARAM hContact, LPARAM hDbEvent)
if (gbHideContacts)
db_set_b(hcntct, "CList", "Hidden", 1);
if (gbSpecialGroup)
- db_set_ws(hcntct, "CList", "Group", gbSpammersGroup.c_str());
+ Clist_SetGroup(hcntct, gbSpammersGroup.c_str());
BYTE msg = 1;
if (gbIgnoreURL) {
wchar_t* EventText = ReqGetText(&dbei); //else return NULL
@@ -183,7 +183,7 @@ int OnDbEventFilterAdd(WPARAM hContact, LPARAM l)
CallProtoService(dbei->szModule, "/GrantAuth", hContact, 0);
// add contact to server list and local group
if (gbAutoAddToServerList) {
- db_set_ws(hContact, "CList", "Group", gbAutoAuthGroup.c_str());
+ Clist_SetGroup(hContact, gbAutoAuthGroup.c_str());
db_unset(hContact, "CList", "NotOnList");
}
@@ -272,7 +272,7 @@ int OnDbEventFilterAdd(WPARAM hContact, LPARAM l)
if (gbHideContacts)
db_set_b(hContact, "CList", "Hidden", 1);
if (gbSpecialGroup)
- db_set_ws(hContact, "CList", "Group", gbSpammersGroup.c_str());
+ Clist_SetGroup(hContact, gbSpammersGroup.c_str());
db_set_b(hContact, "CList", "NotOnList", 1);
// save first message from contact