summaryrefslogtreecommitdiff
path: root/src/plugins/irc/irc-bar-item.c
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2014-10-31 07:48:46 +0100
committerSébastien Helleu <flashcode@flashtux.org>2014-10-31 07:48:46 +0100
commit013165209af818daba6b6c5869e822ec9cb86fc3 (patch)
tree049ac0139e14c43033d6c1ab9fcfe1988acd3359 /src/plugins/irc/irc-bar-item.c
parent3d791fb806e6ef564f7623d1ca364693e08a495c (diff)
downloadweechat-013165209af818daba6b6c5869e822ec9cb86fc3.zip
irc: remove IRC color codes from buffer title in channels (closes #237)
Diffstat (limited to 'src/plugins/irc/irc-bar-item.c')
-rw-r--r--src/plugins/irc/irc-bar-item.c35
1 files changed, 0 insertions, 35 deletions
diff --git a/src/plugins/irc/irc-bar-item.c b/src/plugins/irc/irc-bar-item.c
index 3ac0d466f..26cbbd3e9 100644
--- a/src/plugins/irc/irc-bar-item.c
+++ b/src/plugins/irc/irc-bar-item.c
@@ -88,39 +88,6 @@ irc_bar_item_away (void *data, struct t_gui_bar_item *item,
}
/*
- * Returns content of bar item "buffer_title": bar item with buffer title.
- */
-
-char *
-irc_bar_item_buffer_title (void *data, struct t_gui_bar_item *item,
- struct t_gui_window *window,
- struct t_gui_buffer *buffer,
- struct t_hashtable *extra_info)
-{
- const char *title;
- char *title_color;
-
- /* make C compiler happy */
- (void) data;
- (void) item;
- (void) window;
- (void) extra_info;
-
- if (!buffer)
- return NULL;
-
- title = weechat_buffer_get_string (buffer, "title");
- if (!title)
- return NULL;
-
- title_color = irc_color_decode (title,
- (weechat_config_boolean (irc_config_look_topic_strip_colors)) ?
- 0 : 1);
-
- return (title_color) ? title_color : strdup (title);
-}
-
-/*
* Returns content of bar item "buffer_plugin": bar item with buffer plugin.
*/
@@ -634,7 +601,6 @@ irc_bar_item_buffer_switch (void *data, const char *signal,
(void) signal_data;
weechat_bar_item_update ("away");
- weechat_bar_item_update ("buffer_title");
weechat_bar_item_update ("buffer_name");
weechat_bar_item_update ("buffer_short_name");
weechat_bar_item_update ("buffer_modes");
@@ -666,7 +632,6 @@ void
irc_bar_item_init ()
{
weechat_bar_item_new ("away", &irc_bar_item_away, NULL);
- weechat_bar_item_new ("buffer_title", &irc_bar_item_buffer_title, NULL);
weechat_bar_item_new ("buffer_plugin", &irc_bar_item_buffer_plugin, NULL);
weechat_bar_item_new ("buffer_name", &irc_bar_item_buffer_name, NULL);
weechat_bar_item_new ("buffer_short_name", &irc_bar_item_buffer_short_name, NULL);