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 | |
parent | 5f243ddd8690adeab4cc4511deb46319ca071234 (diff) | |
download | weechat-a394ed5d6fcb54970d5453de02ce228c35ddd9bb.zip |
Add "replacement" argument for string_remove_color in plugin API
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/wee-hook.c | 5 | ||||
-rw-r--r-- | src/core/wee-string.c | 10 | ||||
-rw-r--r-- | src/core/wee-string.h | 1 | ||||
-rw-r--r-- | src/core/weechat.h | 2 |
4 files changed, 3 insertions, 15 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); diff --git a/src/core/wee-string.c b/src/core/wee-string.c index 85742f9a9..6d42c1387 100644 --- a/src/core/wee-string.c +++ b/src/core/wee-string.c @@ -1309,13 +1309,3 @@ string_format_size (unsigned long size) return strdup (str_size); } - -/* - * string_remove_color: remove WeeChat color codes in string - */ - -char * -string_remove_color (const char *string) -{ - return (char *)gui_color_decode ((unsigned char *)string); -} diff --git a/src/core/wee-string.h b/src/core/wee-string.h index 6a0ca4b9f..b4dde55d9 100644 --- a/src/core/wee-string.h +++ b/src/core/wee-string.h @@ -56,6 +56,5 @@ extern char *string_iconv_from_internal (const char *charset, const char *string); extern void string_iconv_fprintf (FILE *file, const char *data, ...); extern char *string_format_size (unsigned long size); -extern char *string_remove_color (const char *string); #endif /* wee-string.h */ diff --git a/src/core/weechat.h b/src/core/weechat.h index 8801eacc5..5c4ebcf88 100644 --- a/src/core/weechat.h +++ b/src/core/weechat.h @@ -51,7 +51,7 @@ #define WEECHAT_COPYRIGHT_DATE "(c) 2003-2009" -#define WEECHAT_WEBSITE "http://weechat.flashtux.org" +#define WEECHAT_WEBSITE "http://weechat.flashtux.org/" /* log file */ |