From 39d373c9719f738c5d26238d1c01164035dba9d3 Mon Sep 17 00:00:00 2001 From: Edoardo Spadolini Date: Sat, 29 Aug 2015 23:33:10 +0200 Subject: [PATCH] Add an %empty% substitution in ExpandString that expands to the empty string. This can be useful in various situations, for instance for quit messages. --- src/User.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/User.cpp b/src/User.cpp index 3991b3b0..bc939334 100644 --- a/src/User.cpp +++ b/src/User.cpp @@ -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