From 44525f461757fc859616fda16820351b07238842 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 27 Jun 2019 21:23:35 +0300 Subject: manual access to CList/Group restricted --- plugins/StopSpamMod/src/stopspam.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/StopSpamMod') 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 -- cgit v1.2.3