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>
This commit is contained in:
Uli Schlachter
2011-09-16 12:02:55 +02:00
parent b07f37b23d
commit e029dded0d
+1
View File
@@ -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());