From 540abf0874dc9e38a3acde11c3c4c8705ad4c931 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Thu, 15 May 2014 23:19:58 +0200 Subject: irc: add bar item "irc_nick_modes" (closes #71) --- src/plugins/irc/irc-mode.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/plugins/irc/irc-mode.c') diff --git a/src/plugins/irc/irc-mode.c b/src/plugins/irc/irc-mode.c index 98a1936b3..b0b9230fb 100644 --- a/src/plugins/irc/irc-mode.c +++ b/src/plugins/irc/irc-mode.c @@ -503,6 +503,7 @@ irc_mode_user_add (struct t_irc_server *server, char mode) server->nick_modes = nick_modes2; strcat (server->nick_modes, str_mode); weechat_bar_item_update ("input_prompt"); + weechat_bar_item_update ("irc_nick_modes"); } } else @@ -510,6 +511,7 @@ irc_mode_user_add (struct t_irc_server *server, char mode) server->nick_modes = malloc (2); strcpy (server->nick_modes, str_mode); weechat_bar_item_update ("input_prompt"); + weechat_bar_item_update ("irc_nick_modes"); } } @@ -534,6 +536,7 @@ irc_mode_user_remove (struct t_irc_server *server, char mode) if (nick_modes2) server->nick_modes = nick_modes2; weechat_bar_item_update ("input_prompt"); + weechat_bar_item_update ("irc_nick_modes"); } } } @@ -586,4 +589,5 @@ irc_mode_user_set (struct t_irc_server *server, const char *modes, modes++; } weechat_bar_item_update ("input_prompt"); + weechat_bar_item_update ("irc_nick_modes"); } -- cgit v1.2.3