summaryrefslogtreecommitdiff
path: root/src/plugins/jabber
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2009-02-11 10:02:35 +0100
committerSebastien Helleu <flashcode@flashtux.org>2009-02-11 10:02:35 +0100
commit85d19bc363f1c1411dc0e33c5ea6e70d537fdb90 (patch)
tree1cdbdd391f78dd5325342f446bacb1645890986f /src/plugins/jabber
parentaf967f9ff90a792a2196ad4c3ec64a551a1af69e (diff)
downloadweechat-85d19bc363f1c1411dc0e33c5ea6e70d537fdb90.zip
Add irc and jabber options to display nick modes in input_prompt bar item
Diffstat (limited to 'src/plugins/jabber')
-rw-r--r--src/plugins/jabber/jabber-config.c23
-rw-r--r--src/plugins/jabber/jabber-config.h1
2 files changed, 24 insertions, 0 deletions
diff --git a/src/plugins/jabber/jabber-config.c b/src/plugins/jabber/jabber-config.c
index cb8c56459..c989978b1 100644
--- a/src/plugins/jabber/jabber-config.c
+++ b/src/plugins/jabber/jabber-config.c
@@ -49,6 +49,7 @@ struct t_config_option *jabber_config_look_nick_suffix;
struct t_config_option *jabber_config_look_nick_completion_smart;
struct t_config_option *jabber_config_look_display_away;
struct t_config_option *jabber_config_look_display_muc_modes;
+struct t_config_option *jabber_config_look_display_nick_modes;
struct t_config_option *jabber_config_look_highlight_tags;
struct t_config_option *jabber_config_look_show_away_once;
struct t_config_option *jabber_config_look_smart_filter;
@@ -183,6 +184,22 @@ jabber_config_change_look_display_muc_modes (void *data,
}
/*
+ * jabber_config_change_look_display_nick_modes: called when the "display
+ * nick modes" option is changed
+ */
+
+void
+jabber_config_change_look_display_nick_modes (void *data,
+ struct t_config_option *option)
+{
+ /* make C compiler happy */
+ (void) data;
+ (void) option;
+
+ weechat_bar_item_update ("input_prompt");
+}
+
+/*
* jabber_config_change_look_highlight_tags: called when the "highlight tags"
* option is changed
*/
@@ -784,6 +801,12 @@ jabber_config_init ()
N_("display MUC modes in \"buffer_name\" bar item"),
NULL, 0, 0, "on", NULL, 0, NULL, NULL,
&jabber_config_change_look_display_muc_modes, NULL, NULL, NULL);
+ jabber_config_look_display_nick_modes = weechat_config_new_option (
+ jabber_config_file, ptr_section,
+ "display_nick_modes", "boolean",
+ N_("display nick modes in \"input_prompt\" bar item"),
+ NULL, 0, 0, "on", NULL, 0, NULL, NULL,
+ &jabber_config_change_look_display_nick_modes, NULL, NULL, NULL);
jabber_config_look_highlight_tags = weechat_config_new_option (
jabber_config_file, ptr_section,
"highlight_tags", "string",
diff --git a/src/plugins/jabber/jabber-config.h b/src/plugins/jabber/jabber-config.h
index a97e839de..129144a26 100644
--- a/src/plugins/jabber/jabber-config.h
+++ b/src/plugins/jabber/jabber-config.h
@@ -39,6 +39,7 @@ extern struct t_config_option *jabber_config_look_nick_suffix;
extern struct t_config_option *jabber_config_look_nick_completion_smart;
extern struct t_config_option *jabber_config_look_display_away;
extern struct t_config_option *jabber_config_look_display_muc_modes;
+extern struct t_config_option *jabber_config_look_display_nick_modes;
extern struct t_config_option *jabber_config_look_highlight_tags;
extern struct t_config_option *jabber_config_look_show_away_once;
extern struct t_config_option *jabber_config_look_smart_filter;