summaryrefslogtreecommitdiff
path: root/plugins/Watrack
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-06-01 15:51:11 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-06-01 15:51:11 +0000
commit098b75ec924b6a52328e3803f5bf9e5f45835f5d (patch)
treeffdc259bed2716dd2708ec684e4fb1f4e19007e3 /plugins/Watrack
parent865ed867c55b89e0b5d47820752ca3ce08246e0a (diff)
watrack to publish xStatuses correctly
git-svn-id: http://svn.miranda-ng.org/main/trunk@13958 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Watrack')
-rw-r--r--plugins/Watrack/status/i_status.inc9
1 files changed, 3 insertions, 6 deletions
diff --git a/plugins/Watrack/status/i_status.inc b/plugins/Watrack/status/i_status.inc
index 0392a797ad..9bb071a785 100644
--- a/plugins/Watrack/status/i_status.inc
+++ b/plugins/Watrack/status/i_status.inc
@@ -127,12 +127,9 @@ begin
txt:=GetMacros(tmpl_stext,j);
if uint_ptr(txt)<>uint_ptr(-1) then
begin
- if (txt=nil) or (txt^=#0) then
- ls:=nil
- else
- WideToAnsi(txt,ls,UserCP);
- SetStatus(proto,-status,ls);
- mFreeMem(ls);
+ if (txt<>nil) and (txt^=#0) then
+ txt:=nil;
+ SetStatus(proto,-status,txt);
mFreeMem(txt);
end;
end;