1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-10 11:43:13 +02:00

If null value is allowed for an option, display it in /help option

This commit is contained in:
Sebastien Helleu
2010-08-14 11:44:08 +02:00
parent 776329b93f
commit a6cd860b5a
12 changed files with 161 additions and 106 deletions
+6
View File
@@ -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;
}