mirror of
https://github.com/znc/znc.git
synced 2026-08-06 17:03:14 +02:00
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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user