Add an %empty% substitution in ExpandString that expands to the empty string.
This can be useful in various situations, for instance for quit messages.
This commit is contained in:
1 parent
068d5af719
commit
39d373c971
1 file changed
+1
@@ -554,6 +554,7 @@ CString& CUser::ExpandString(const CString& sStr, CString& sRet) const {
|
|||||||
sRet.Replace("%version%", CZNC::GetVersion());
|
sRet.Replace("%version%", CZNC::GetVersion());
|
||||||
sRet.Replace("%time%", sTime);
|
sRet.Replace("%time%", sTime);
|
||||||
sRet.Replace("%uptime%", CZNC::Get().GetUptime());
|
sRet.Replace("%uptime%", CZNC::Get().GetUptime());
|
||||||
|
sRet.Replace("%empty%", "");
|
||||||
// The following lines do not exist. You must be on DrUgS!
|
// The following lines do not exist. You must be on DrUgS!
|
||||||
sRet.Replace("%znc%", "All your IRC are belong to ZNC");
|
sRet.Replace("%znc%", "All your IRC are belong to ZNC");
|
||||||
// Chosen by fair zocchihedron dice roll by SilverLeo
|
// Chosen by fair zocchihedron dice roll by SilverLeo
|
||||||
|
|||||||
Reference in new issue
Block a user