From 37028d5330f51ca51fbbe75730125dbbb3b09e68 Mon Sep 17 00:00:00 2001 From: Alexey Kulakov Date: Sun, 30 Mar 2014 19:42:37 +0000 Subject: IsContactActive function fix git-svn-id: http://svn.miranda-ng.org/main/trunk@8797 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Utils.pas/mirutils.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/Utils.pas/mirutils.pas b/plugins/Utils.pas/mirutils.pas index 567be873dc..1f79cc1d4e 100644 --- a/plugins/Utils.pas/mirutils.pas +++ b/plugins/Utils.pas/mirutils.pas @@ -707,7 +707,7 @@ begin p:=PPROTOACCOUNT(CallService(MS_PROTO_GETACCOUNT,0,lparam(@name))); if p=nil then result:=-2 // deleted - else if p^.bIsEnabled or p^.bDynDisabled then + else if (not p^.bIsEnabled) or p^.bDynDisabled then result:=-1; // disabled end else -- cgit v1.2.3