diff options
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/weeconfig.c | 10 | ||||
-rw-r--r-- | src/common/weeconfig.h | 4 |
2 files changed, 10 insertions, 4 deletions
diff --git a/src/common/weeconfig.c b/src/common/weeconfig.c index d0ddb588e..fd62293ba 100644 --- a/src/common/weeconfig.c +++ b/src/common/weeconfig.c @@ -650,6 +650,8 @@ t_config_option weechat_options_log[] = /* config, irc section */ int cfg_irc_display_away; +char *cfg_irc_display_away_values[] = +{ "off", "local", "channel", NULL }; char *cfg_irc_default_msg_part; char *cfg_irc_default_msg_quit; int cfg_irc_notice_as_pv; @@ -663,10 +665,10 @@ int cfg_irc_colors_receive; int cfg_irc_colors_send; t_config_option weechat_options_irc[] = -{ { "irc_display_away", N_("display message to all channels when away"), - N_("display message to all channels when (un)marking as away"), - OPTION_TYPE_BOOLEAN, BOOL_FALSE, BOOL_TRUE, BOOL_FALSE, - NULL, NULL, &cfg_irc_display_away, NULL, &config_change_noop }, +{ { "irc_display_away", N_("display message for away"), + N_("display message when (un)marking as away"), + OPTION_TYPE_INT_WITH_STRING, 0, 0, 0, + "off", cfg_irc_display_away_values, &cfg_irc_display_away, NULL, &config_change_noop }, { "irc_default_msg_part", N_("default part message (leaving channel)"), N_("default part message (leaving channel)"), OPTION_TYPE_STRING, 0, 0, 0, diff --git a/src/common/weeconfig.h b/src/common/weeconfig.h index 9cfd8f006..23825ad55 100644 --- a/src/common/weeconfig.h +++ b/src/common/weeconfig.h @@ -54,6 +54,10 @@ #define CFG_LOOK_NICKLIST_TOP 2 #define CFG_LOOK_NICKLIST_BOTTOM 3 +#define CFG_IRC_DISPLAY_AWAY_OFF 0 +#define CFG_IRC_DISPLAY_AWAY_LOCAL 1 +#define CFG_IRC_DISPLAY_AWAY_CHANNEL 2 + typedef struct t_config_section t_config_section; struct t_config_section |