summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/config.cpp3
1 files changed, 3 insertions, 0 deletions
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;