summaryrefslogtreecommitdiff
path: root/plugins/StopSpamMod/src/stopspam.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/StopSpamMod/src/stopspam.cpp')
-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) {