diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2006-01-08 01:22:25 +0000 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2006-01-08 01:22:25 +0000 |
commit | b1f83dce8a9979aad72ccc5b2f34455488cc6c6e (patch) | |
tree | c4fa83a298c271b1530a7a51c1f5e9fff453b518 /src/common | |
parent | dd39ac243273052609e5f3ee6a5217f07e06402d (diff) | |
download | weechat-b1f83dce8a9979aad72ccc5b2f34455488cc6c6e.zip |
Removed "irc_default_msg_away" setting, for RFC 2812 conformity (/away command
wihtout argument only removes away status)
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/completion.c | 16 | ||||
-rw-r--r-- | src/common/weeconfig.c | 5 | ||||
-rw-r--r-- | src/common/weeconfig.h | 1 |
3 files changed, 0 insertions, 22 deletions
diff --git a/src/common/completion.c b/src/common/completion.c index a2bd350c8..fb4f4ff90 100644 --- a/src/common/completion.c +++ b/src/common/completion.c @@ -574,19 +574,6 @@ completion_list_add_weechat_cmd (t_completion *completion) } /* - * completion_list_add_away: add away message to completion list - */ - -void -completion_list_add_away (t_completion *completion) -{ - if (cfg_irc_default_msg_away && cfg_irc_default_msg_away[0]) - weelist_add (&completion->completion_list, - &completion->last_completion, - cfg_irc_default_msg_away); -} - -/* * completion_build_list_template: build data list according to a template */ @@ -680,9 +667,6 @@ completion_build_list_template (t_completion *completion, char *template) case 'w': /* WeeChat commands */ completion_list_add_weechat_cmd (completion); break; - case 'y': /* away message */ - completion_list_add_away (completion); - break; } } break; diff --git a/src/common/weeconfig.c b/src/common/weeconfig.c index 34e5b37dc..d0ddb588e 100644 --- a/src/common/weeconfig.c +++ b/src/common/weeconfig.c @@ -650,7 +650,6 @@ t_config_option weechat_options_log[] = /* config, irc section */ int cfg_irc_display_away; -char *cfg_irc_default_msg_away; char *cfg_irc_default_msg_part; char *cfg_irc_default_msg_quit; int cfg_irc_notice_as_pv; @@ -668,10 +667,6 @@ t_config_option weechat_options_irc[] = 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_default_msg_away", N_("default message when away"), - N_("default message when away"), - OPTION_TYPE_STRING, 0, 0, 0, - "away", NULL, NULL, &cfg_irc_default_msg_away, &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 254a56a44..9cfd8f006 100644 --- a/src/common/weeconfig.h +++ b/src/common/weeconfig.h @@ -183,7 +183,6 @@ extern char *cfg_log_timestamp; extern int cfg_log_hide_nickserv_pwd; extern int cfg_irc_display_away; -extern char *cfg_irc_default_msg_away; extern char *cfg_irc_default_msg_part; extern char *cfg_irc_default_msg_quit; extern int cfg_irc_notice_as_pv; |