From 905a5127f41abf8350a633f361022facd1af3850 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 21 Oct 2001 18:58:09 +0000 Subject: [PATCH] if \x isn't a known escape sequence, it should print just x, not \x. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1887 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/core/special-vars.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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 == '$') {