Permalink
Browse files

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 <psychon@znc.in>
  • Loading branch information...
psychon committed Sep 16, 2011
1 parent b07f37b commit e029dded0d3c1fc6e733f38a9540660c189fa1b9
Showing with 1 addition and 0 deletions.
  1. +1 −0 IRCNetwork.cpp
View
@@ -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());

0 comments on commit e029dde

Please sign in to comment.