From 8dfe91c7dcaea903a2a7ab3491eccc1ae1310a35 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Thu, 1 Oct 2009 06:38:05 +0300 Subject: fix invis mode.. --- stopspam_mod/trunk/stopspam.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'stopspam_mod/trunk/stopspam.cpp') diff --git a/stopspam_mod/trunk/stopspam.cpp b/stopspam_mod/trunk/stopspam.cpp index 27dde1d..c4cb38c 100644 --- a/stopspam_mod/trunk/stopspam.cpp +++ b/stopspam_mod/trunk/stopspam.cpp @@ -203,9 +203,10 @@ MIRANDA_HOOK_EVENT(ME_DB_EVENT_FILTER_ADD, w, l) DBWriteContactSettingDword(hContact, pluginName, "QuestionCount", questCount + 1); } - else + else { - if (gbDosServiceExist) + if (gbDosServiceExist && (!gbInvisDisable || (gbInvisDisable && ((DBGetContactSettingWord(hContact,dbei->szModule,"ApparentMode",0) != ID_STATUS_OFFLINE) || + (CallProtoService(dbei->szModule, PS_GETSTATUS, 0, 0) != ID_STATUS_INVISIBLE))))) { if(gbDosServiceIntegration) { -- cgit v1.2.3