diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2009-03-18 18:02:48 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2009-03-18 18:02:48 +0100 |
commit | a394ed5d6fcb54970d5453de02ce228c35ddd9bb (patch) | |
tree | 1f898f7982bb8ca0479470ecd64246114efb5d76 /src/core/wee-hook.c | |
parent | 5f243ddd8690adeab4cc4511deb46319ca071234 (diff) | |
download | weechat-a394ed5d6fcb54970d5453de02ce228c35ddd9bb.zip |
Add "replacement" argument for string_remove_color in plugin API
Diffstat (limited to 'src/core/wee-hook.c')
-rw-r--r-- | src/core/wee-hook.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/wee-hook.c b/src/core/wee-hook.c index 41a38f245..2cc7dc010 100644 --- a/src/core/wee-hook.c +++ b/src/core/wee-hook.c @@ -1372,10 +1372,9 @@ hook_print_exec (struct t_gui_buffer *buffer, struct t_gui_line *line) if (!line->message || !line->message[0]) return; - prefix_no_color = (line->prefix) ? - (char *)gui_color_decode ((unsigned char *)line->prefix) : NULL; + prefix_no_color = (line->prefix) ? gui_color_decode (line->prefix, NULL) : NULL; - message_no_color = (char *)gui_color_decode ((unsigned char *)line->message); + message_no_color = gui_color_decode (line->message, NULL); if (!message_no_color) { free (prefix_no_color); |