diff options
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/spell/spell.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/plugins/spell/spell.c b/src/plugins/spell/spell.c index 0cd546eca..62a88388c 100644 --- a/src/plugins/spell/spell.c +++ b/src/plugins/spell/spell.c @@ -658,6 +658,22 @@ spell_skip_color_codes (char **string, char **result) weechat_string_dyn_concat (result, *string, color_code_size); (*string) += color_code_size; } + else if (*string[0] == '\x02' || *string[0] == '\x0F' + || *string[0] == '\x11' || *string[0] == '\x16' + || *string[0] == '\x1D' || *string[0] == '\x1F') + { + /* + * IRC attribute: + * 0x02: bold + * 0x0F: reset + * 0x11: monospaced font + * 0x16: reverse video + * 0x1D: italic + * 0x1F: underlined text + */ + weechat_string_dyn_concat (result, *string, 1); + (*string)++; + } else if (*string[0] == '\x03') { /* IRC color code */ |