diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2009-02-07 18:49:46 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2009-02-07 18:49:46 +0100 |
commit | c683673047742fc8ece9193b4b774ecf367c6472 (patch) | |
tree | 9407e12d8316c456faa3a9341aa78fbb410660d3 | |
parent | 94aa12d8ff26e8af02e6443a74fbacf6a784b49d (diff) | |
download | weechat-c683673047742fc8ece9193b4b774ecf367c6472.zip |
Fix bug in irc color decoding: reset color if color code is not followed by a color number
-rw-r--r-- | src/plugins/irc/irc-color.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/irc/irc-color.c b/src/plugins/irc/irc-color.c index 91a60ac93..f1f06eeec 100644 --- a/src/plugins/irc/irc-color.c +++ b/src/plugins/irc/irc-color.c @@ -160,6 +160,8 @@ irc_color_decode (const char *string, int keep_colors) (bg >= 0) ? irc_color_to_weechat[bg] : ""); strcat ((char *)out, weechat_color(str_color)); } + else + strcat ((char *)out, weechat_color("reset")); } break; default: |