diff options
author | George Hazan <ghazan@miranda.im> | 2018-04-07 20:23:30 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-04-07 20:23:30 +0300 |
commit | 5811219420fdedef8941584ef70fec403d012e4e (patch) | |
tree | 2f5e90bbd69a6499923b6207e5c9df51588d0fb8 /plugins/Utils.pas | |
parent | f60c78abfbd5f279b30de729046b805bba8e00b0 (diff) |
Proto_GetAccount() for pascal plugins
Diffstat (limited to 'plugins/Utils.pas')
-rw-r--r-- | plugins/Utils.pas/mircontacts.pas | 3 | ||||
-rw-r--r-- | plugins/Utils.pas/protocols.pas | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/plugins/Utils.pas/mircontacts.pas b/plugins/Utils.pas/mircontacts.pas index 1ec228ce3e..1c3b614324 100644 --- a/plugins/Utils.pas/mircontacts.pas +++ b/plugins/Utils.pas/mircontacts.pas @@ -455,8 +455,7 @@ begin begin
if not anystatus then
begin
- StrCat(pc,PS_GETSTATUS);
- anystatus:=(CallService(pc,0,0)<>ID_STATUS_OFFLINE);
+ anystatus:=(Proto_GetStatus(pc)<>ID_STATUS_OFFLINE);
end;
if anystatus then
begin
diff --git a/plugins/Utils.pas/protocols.pas b/plugins/Utils.pas/protocols.pas index 97a972dbe0..8a76d794d0 100644 --- a/plugins/Utils.pas/protocols.pas +++ b/plugins/Utils.pas/protocols.pas @@ -184,7 +184,7 @@ end; function GetProtoStatus(ProtoNum:uint_ptr):integer;
begin
ProtoNum:=FindProto(PAnsiChar(ProtoNum));
- result:=CallProtoService(protos^[ProtoNum].name,PS_GETSTATUS,0,0);
+ result:=Proto_GetStatus(protos^[ProtoNum].name);
end;
function GetProtoStatusNum(ProtoNum:uint_ptr):integer;
|