diff --git a/src/config.cpp b/src/config.cpp index a356bcd80..348bd9dd8 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -994,7 +994,10 @@ Anope::string Conf::ReplaceVars(const Anope::string &str, const File &file, int } if (++it == str.end() || *it != '{') + { + ret.push_back('$'); continue; + } it++; Anope::string var;