summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-12-21 17:16:02 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-12-21 17:16:02 +0000
commit45216fbba8af5d8e9d4173808741df52fb5ded11 (patch)
tree5fb86e5351deb143cb6a8be6ed5379c85a19212c /plugins
parentf9e33a21e734d927f224cf93fd7be05dce3f7391 (diff)
obsoleted check removed
git-svn-id: http://svn.miranda-ng.org/main/trunk@11557 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Utils.pas/mircontacts.pas18
1 files changed, 5 insertions, 13 deletions
diff --git a/plugins/Utils.pas/mircontacts.pas b/plugins/Utils.pas/mircontacts.pas
index cdc71dbb08..a1465b32fb 100644
--- a/plugins/Utils.pas/mircontacts.pas
+++ b/plugins/Utils.pas/mircontacts.pas
@@ -246,19 +246,11 @@ begin
begin
result:=0;
- if ServiceExists(MS_PROTO_GETACCOUNT)<>0 then
- begin
- p:=PPROTOACCOUNT(CallService(MS_PROTO_GETACCOUNT,0,lparam(@name)));
- if p=nil then
- result:=-2 // deleted
- else if (not p^.bIsEnabled) or p^.bDynDisabled then
- result:=-1; // disabled
- end
- else
- begin
- if CallService(MS_PROTO_ISPROTOCOLLOADED,0,lparam(@name))=0 then
- result:=-1;
- end;
+ p:=PPROTOACCOUNT(CallService(MS_PROTO_GETACCOUNT,0,lparam(@name)));
+ if p=nil then
+ result:=-2 // deleted
+ else if (not p^.bIsEnabled) or p^.bDynDisabled then
+ result:=-1; // disabled
if (result=0) and (DBReadByte(hContact,strCList,'Hidden',0)=0) then
begin