diff --git a/src/core/special-vars.c b/src/core/special-vars.c index 4490139f..4f68bc53 100644 --- a/src/core/special-vars.c +++ b/src/core/special-vars.c @@ -496,12 +496,7 @@ char *parse_special_string(const char *cmd, SERVER_REC *server, void *item, g_string_append_c(str, ';'); else { chr = expand_escape(&cmd); - if (chr != -1) - g_string_append_c(str, chr); - else { - g_string_append_c(str, '\\'); - g_string_append_c(str, *cmd); - } + g_string_append_c(str, chr != -1 ? chr : *cmd); } code = 0; } else if (code == '$') {