summaryrefslogtreecommitdiff
path: root/plugins/TipperYM/src/subst.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/TipperYM/src/subst.cpp')
-rw-r--r--plugins/TipperYM/src/subst.cpp8
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);
}