diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2020-03-14 17:44:23 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2020-03-15 07:19:16 +0100 |
commit | 00913de02f8f17bfc4d2ecd3115bcf7c70bede1c (patch) | |
tree | 78960997c14ebbea94f76d22ff01afed0935ab70 /src/plugins | |
parent | 042c8fb02fdc7b1b30e35e479b2526802a74e789 (diff) | |
download | weechat-00913de02f8f17bfc4d2ecd3115bcf7c70bede1c.zip |
irc: remove unused variable "modes" from function irc_bar_item_buffer_name_content
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/irc/irc-bar-item.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/plugins/irc/irc-bar-item.c b/src/plugins/irc/irc-bar-item.c index 06ef0c89d..8b2cd2004 100644 --- a/src/plugins/irc/irc-bar-item.c +++ b/src/plugins/irc/irc-bar-item.c @@ -114,7 +114,7 @@ irc_bar_item_buffer_plugin (const void *pointer, void *data, char * irc_bar_item_buffer_name_content (struct t_gui_buffer *buffer, int short_name) { - char buf[512], buf_name[256], modes[128]; + char buf[512], buf_name[256]; const char *name, *localvar_type; int part_from_channel, display_server, is_channel; struct t_irc_server *server; @@ -124,7 +124,6 @@ irc_bar_item_buffer_name_content (struct t_gui_buffer *buffer, int short_name) return NULL; buf_name[0] = '\0'; - modes[0] = '\0'; display_server = (weechat_config_integer (irc_config_look_item_display_server) == IRC_CONFIG_LOOK_ITEM_DISPLAY_SERVER_NAME); @@ -187,10 +186,10 @@ irc_bar_item_buffer_name_content (struct t_gui_buffer *buffer, int short_name) } } - snprintf (buf, sizeof (buf), "%s%s%s", + snprintf (buf, sizeof (buf), + "%s%s", (server && server->ssl_connected) ? IRC_COLOR_STATUS_NAME_SSL : IRC_COLOR_STATUS_NAME, - buf_name, - modes); + buf_name); return strdup (buf); } |