summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-10-21 18:58:09 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-10-21 18:58:09 +0000
commit905a5127f41abf8350a633f361022facd1af3850 (patch)
treefcbf81e8a3218cbdc91efe1fb2190d870689f960 /src/core
parent99fe282e6d9ce5eb975b17e58ee7d2420ec86dfa (diff)
downloadirssi-905a5127f41abf8350a633f361022facd1af3850.zip
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
Diffstat (limited to 'src/core')
-rw-r--r--src/core/special-vars.c7
1 files changed, 1 insertions, 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 == '$') {