From 9536e0bb47b12ea2ae01ab070dd9f6aa5bb360c2 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 29 Dec 2023 17:03:21 +0300 Subject: =?UTF-8?q?fixes=20#4085=20(=D0=A3=D0=B4=D0=B0=D0=BB=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20=D0=BD=D0=B0=D1=81=D1=82=D1=80=D0=BE=D0=B9=D0=BA=D0=B8?= =?UTF-8?q?=20=D0=BD=D0=B5=D0=B2=D0=B8=D0=B4=D0=B8=D0=BC=D0=BE=D1=81=D1=82?= =?UTF-8?q?=D0=B8)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/StopSpamMod/src/stopspam.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'plugins/StopSpamMod/src') 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) { -- cgit v1.2.3