diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2013-08-18 20:58:12 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2013-08-18 20:58:12 +0000 |
commit | ce782f801ada17e8d97c620b81d7701479d8e10d (patch) | |
tree | 2c9e4ced6998d5c81e28ce361302c0103b7f68f1 /plugins/TipperYM/src/subst.cpp | |
parent | 1782bd501414d4e074c991fa0f7612d9896a29e8 (diff) |
big workaround to use core gender icons in Tipper (fixes #444)
git-svn-id: http://svn.miranda-ng.org/main/trunk@5737 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TipperYM/src/subst.cpp')
-rw-r--r-- | plugins/TipperYM/src/subst.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/TipperYM/src/subst.cpp b/plugins/TipperYM/src/subst.cpp index e4bcb782cd..36dadd8b6d 100644 --- a/plugins/TipperYM/src/subst.cpp +++ b/plugins/TipperYM/src/subst.cpp @@ -539,10 +539,10 @@ bool ApplySubst(HANDLE hContact, const TCHAR *swzSource, bool parseTipperVarsFir // pass to variables plugin if available
TCHAR *swzVarSrc;
- if (parseTipperVarsFirst == false)
- swzVarSrc = variables_parsedup((TCHAR *)swzSource, 0, hContact);
- else
+ if (parseTipperVarsFirst)
swzVarSrc = mir_tstrdup(swzSource);
+ else
+ swzVarSrc = variables_parsedup((TCHAR *)swzSource, 0, hContact);
size_t iSourceLen = _tcslen(swzVarSrc);
size_t si = 0, di = 0, v = 0;
@@ -894,7 +894,7 @@ TCHAR *GetProtoExtraStatusMessage(char *szProto) }
}
- TCHAR *tszParsed = (TCHAR *)variables_parse(swzText, NULL, hContact);
+ TCHAR *tszParsed = variables_parse(swzText, NULL, hContact);
if (tszParsed)
replaceStrT(swzText, tszParsed);
}
|