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:
Edoardo Spadolini
2015-08-29 23:33:10 +02:00
parent 068d5af719
commit 39d373c971
+1
View File
@@ -554,6 +554,7 @@ CString& CUser::ExpandString(const CString& sStr, CString& sRet) const {
sRet.Replace("%version%", CZNC::GetVersion());
sRet.Replace("%time%", sTime);
sRet.Replace("%uptime%", CZNC::Get().GetUptime());
sRet.Replace("%empty%", "");
// The following lines do not exist. You must be on DrUgS!
sRet.Replace("%znc%", "All your IRC are belong to ZNC");
// Chosen by fair zocchihedron dice roll by SilverLeo