From a6cd860b5ae679a1144f47b0aa8b3ece6968517a Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Sat, 14 Aug 2010 11:44:08 +0200 Subject: If null value is allowed for an option, display it in /help option --- src/core/wee-command.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/core/wee-command.c') diff --git a/src/core/wee-command.c b/src/core/wee-command.c index e9b8bd23b..7e11d4054 100644 --- a/src/core/wee-command.c +++ b/src/core/wee-command.c @@ -1806,6 +1806,12 @@ command_help (void *data, struct t_gui_buffer *buffer, case CONFIG_NUM_OPTION_TYPES: break; } + if (ptr_option->null_value_allowed) + { + gui_chat_printf (NULL, " %s", + /* TRANSLATORS: please do not translate "(null)" */ + _("undefined value allowed (null)")); + } return WEECHAT_RC_OK; } -- cgit v1.2.3