summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss123next@list.ru>2009-10-01 06:56:35 +0300
committerGluzskiy Alexandr <sss123next@list.ru>2009-10-01 06:56:35 +0300
commit3dfe678dadc2e1020687a58376aef68fa992deb3 (patch)
tree033fcb1dc2a1e9437a5fd29aa392866d148dbba0
parent8dfe91c7dcaea903a2a7ab3491eccc1ae1310a35 (diff)
invis mode fix...
-rw-r--r--stopspam_mod/trunk/stopspam.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/stopspam_mod/trunk/stopspam.cpp b/stopspam_mod/trunk/stopspam.cpp
index c4cb38c..ad223ae 100644
--- a/stopspam_mod/trunk/stopspam.cpp
+++ b/stopspam_mod/trunk/stopspam.cpp
@@ -61,6 +61,9 @@ MIRANDA_HOOK_EVENT(ME_DB_EVENT_ADDED, wParam, lParam)
if(gbSpecialGroup)
DBWriteContactSettingTString(hcntct, "CList", "Group", gbSpammersGroup.c_str());
+ if(!gbInvisDisable || (gbInvisDisable &&
+ ((DBGetContactSettingWord(hContact,dbei.szModule,"ApparentMode",0) != ID_STATUS_OFFLINE) ||
+ (CallProtoService(dbei.szModule, PS_GETSTATUS, 0, 0) != ID_STATUS_INVISIBLE))))
int a = CallService(allowService.c_str(), (WPARAM)hDbEvent, (LPARAM)(variables_parse(gbAuthRepl, hcntct).c_str()));
//CallProtoService(dbei.szModule,PS_AUTHDENY,(WPARAM)hDbEvent,(LPARAM)GetAuthRepl().c_str());
@@ -205,8 +208,9 @@ MIRANDA_HOOK_EVENT(ME_DB_EVENT_FILTER_ADD, w, l)
}
else
{
- if (gbDosServiceExist && (!gbInvisDisable || (gbInvisDisable && ((DBGetContactSettingWord(hContact,dbei->szModule,"ApparentMode",0) != ID_STATUS_OFFLINE) ||
- (CallProtoService(dbei->szModule, PS_GETSTATUS, 0, 0) != ID_STATUS_INVISIBLE)))))
+ 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)
{