From e029dded0d3c1fc6e733f38a9540660c189fa1b9 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Fri, 16 Sep 2011 12:02:55 +0200 Subject: [PATCH] Fix CIRCNetwork::ExpandString() It pretty much always returned an empty string (or rather: whatever was in the return variable before, which is an empty string in 99% of cases). Signed-off-by: Uli Schlachter --- IRCNetwork.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/IRCNetwork.cpp b/IRCNetwork.cpp index 55ab4333..16ccc494 100644 --- a/IRCNetwork.cpp +++ b/IRCNetwork.cpp @@ -902,6 +902,7 @@ CString CIRCNetwork::ExpandString(const CString& sStr) const { } CString& CIRCNetwork::ExpandString(const CString& sStr, CString& sRet) const { + sRet = sStr; sRet.Replace("%defnick%", GetNick()); sRet.Replace("%nick%", GetCurNick()); sRet.Replace("%altnick%", GetAltNick());