summaryrefslogtreecommitdiff
path: root/plugins/StopSpamMod
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-12-29 17:03:21 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-12-29 17:03:21 +0300
commit9536e0bb47b12ea2ae01ab070dd9f6aa5bb360c2 (patch)
treea6663fa7d5aa9afcb51fe1b914e457acdcf5fa8f /plugins/StopSpamMod
parent28535b12d00c1ccfa98250dd2c7e87402545adba (diff)
fixes #4085 (Удалить настройки невидимости)
Diffstat (limited to 'plugins/StopSpamMod')
-rw-r--r--plugins/StopSpamMod/src/stopspam.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/plugins/StopSpamMod/src/stopspam.cpp b/plugins/StopSpamMod/src/stopspam.cpp
index ec80f97f3b..8ac386e370 100644
--- a/plugins/StopSpamMod/src/stopspam.cpp
+++ b/plugins/StopSpamMod/src/stopspam.cpp
@@ -45,12 +45,9 @@ int OnDbEventAdded(WPARAM, LPARAM hDbEvent)
if (gbIgnoreURL)
isMessage = !IsUrlContains(Utf2T(blob.get_reason()));
- if (gbInvisDisable) {
+ if (gbInvisDisable)
if (Proto_GetStatus(dbei.szModule) == ID_STATUS_INVISIBLE)
isMessage = false;
- else if (db_get_w(hContact, dbei.szModule, "ApparentMode", 0) == ID_STATUS_OFFLINE)
- isMessage = false; //is it useful ?
- }
// ...send message
if (isMessage) {
@@ -119,8 +116,6 @@ int OnDbEventFilterAdd(WPARAM hContact, LPARAM l)
if (gbInvisDisable) {
if (Proto_GetStatus(dbei->szModule) == ID_STATUS_INVISIBLE)
bSendMsg = false;
- else if (db_get_w(hContact, dbei->szModule, "ApparentMode", 0) == ID_STATUS_OFFLINE)
- bSendMsg = false; //is it useful ?
}
bool answered = false;
if (gbMathExpression) {