summaryrefslogtreecommitdiff
path: root/plugins/Watrack/status
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2016-11-27 21:02:54 +0300
committerGeorge Hazan <ghazan@miranda.im>2016-11-27 21:02:54 +0300
commit0ebb1294ecaf4d62ad6b3e911be6275248c05354 (patch)
tree5560ce9ecc74ab5357279cd15aa9704d4d9d8c30 /plugins/Watrack/status
parentc6b6e8a4b79e906f77b1f3be43e939316e1d912f (diff)
correct type for ServiceExists() - bool
Diffstat (limited to 'plugins/Watrack/status')
-rw-r--r--plugins/Watrack/status/i_opt_11.inc2
-rw-r--r--plugins/Watrack/status/i_status.inc4
-rw-r--r--plugins/Watrack/status/status.pas5
3 files changed, 2 insertions, 9 deletions
diff --git a/plugins/Watrack/status/i_opt_11.inc b/plugins/Watrack/status/i_opt_11.inc
index 8039dae4c1..f996cae6c9 100644
--- a/plugins/Watrack/status/i_opt_11.inc
+++ b/plugins/Watrack/status/i_opt_11.inc
@@ -142,7 +142,7 @@ begin
StrCopy(buf,GetProtoName(CurProto));
StrCat(buf,PS_GETCUSTOMSTATUSICON);
- endis:=ServiceExists(buf)<>0;
+ endis:=ServiceExists(buf);
EnableWindow(GetDlgItem(Dialog,IDC_CBEX ),endis);
EnableWindow(GetDlgItem(Dialog,IDC_XSTAT_AUDIO),endis);
diff --git a/plugins/Watrack/status/i_status.inc b/plugins/Watrack/status/i_status.inc
index 9bb071a785..bbd8f2e1fa 100644
--- a/plugins/Watrack/status/i_status.inc
+++ b/plugins/Watrack/status/i_status.inc
@@ -91,9 +91,7 @@ begin
todo :=true;
end;
- if (UseListeningTo<>BST_UNCHECKED) and
- IsTunesSupported(j) then
-// (ProtoServiceExists(proto,PS_SET_LISTENINGTO)<>0) then
+ if (UseListeningTo<>BST_UNCHECKED) and IsTunesSupported(j) then
begin
if doClear then
CallProtoService(proto,PS_SET_LISTENINGTO,0,0)
diff --git a/plugins/Watrack/status/status.pas b/plugins/Watrack/status/status.pas
index cc52e6e1d1..81c1f20d9a 100644
--- a/plugins/Watrack/status/status.pas
+++ b/plugins/Watrack/status/status.pas
@@ -69,11 +69,6 @@ begin
hINS:=CreateServiceFunction(MS_WAT_INSERT,@InsertProc);
reghotkey;
plStatusHook:=HookEvent(ME_WAT_NEWSTATUS,@NewPlStatus);
-
-// mStatus.ModuleStat:=1;
-
-// if ServiceExists(MS_LISTENINGTO_GETPARSEDTEXT)<>0 then
-// hLTo:=CreateServiceFunction(MS_LISTENINGTO_GETPARSEDTEXT,@ListenProc);
end;
procedure DeInitProc(aSetDisable:boolean);