mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Add CIRCNetwork::ExpandString
This commit is contained in:
@@ -896,3 +896,17 @@ void CIRCNetwork::SetRealName(const CString& s) {
|
||||
}
|
||||
}
|
||||
|
||||
CString CIRCNetwork::ExpandString(const CString& sStr) const {
|
||||
CString sRet;
|
||||
return ExpandString(sStr, sRet);
|
||||
}
|
||||
|
||||
CString& CIRCNetwork::ExpandString(const CString& sStr, CString& sRet) const {
|
||||
sRet.Replace("%defnick%", GetNick());
|
||||
sRet.Replace("%nick%", GetCurNick());
|
||||
sRet.Replace("%altnick%", GetAltNick());
|
||||
sRet.Replace("%ident%", GetIdent());
|
||||
sRet.Replace("%realname%", GetRealName());
|
||||
|
||||
return m_pUser->ExpandString(sRet, sRet);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user