summaryrefslogtreecommitdiff
path: root/src/plugins/irc/irc-mode.c
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2014-05-15 23:19:58 +0200
committerSébastien Helleu <flashcode@flashtux.org>2014-05-15 23:19:58 +0200
commit540abf0874dc9e38a3acde11c3c4c8705ad4c931 (patch)
treecc11be63985cc9272ed9f02400dfd96afcf83f55 /src/plugins/irc/irc-mode.c
parent85b8e0d82bf99ca2c55a87482ee40b3043df14db (diff)
downloadweechat-540abf0874dc9e38a3acde11c3c4c8705ad4c931.zip
irc: add bar item "irc_nick_modes" (closes #71)
Diffstat (limited to 'src/plugins/irc/irc-mode.c')
-rw-r--r--src/plugins/irc/irc-mode.c4
1 files changed, 4 insertions, 0 deletions
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");
}