From f93eec488e1826d9fb1a49a8aecbaa6b4ab2647b Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Wed, 26 May 2010 16:19:05 +0200 Subject: Fix display bug with description of option in /help option if description is empty --- src/core/wee-command.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/core/wee-command.c') diff --git a/src/core/wee-command.c b/src/core/wee-command.c index c6a6a5b61..1def76d16 100644 --- a/src/core/wee-command.c +++ b/src/core/wee-command.c @@ -1573,7 +1573,8 @@ command_help (void *data, struct t_gui_buffer *buffer, GUI_COLOR(GUI_COLOR_CHAT)); gui_chat_printf (NULL, " %s: %s", _("description"), - (ptr_option->description) ? _(ptr_option->description) : ""); + (ptr_option->description && ptr_option->description[0]) ? + _(ptr_option->description) : ""); switch (ptr_option->type) { case CONFIG_OPTION_TYPE_BOOLEAN: -- cgit v1.2.3