From 8a68adbf3fb9eeda31c57c012e89465ed01fafb5 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Sat, 21 Mar 2009 13:19:43 +0100 Subject: Add color around plugin name in help for commands --- src/core/wee-command.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/core') diff --git a/src/core/wee-command.c b/src/core/wee-command.c index e2aae65b0..33a222f9c 100644 --- a/src/core/wee-command.c +++ b/src/core/wee-command.c @@ -1306,11 +1306,11 @@ command_help (void *data, struct t_gui_buffer *buffer, { gui_chat_printf (NULL, ""); gui_chat_printf (NULL, - "[%s%s] %s/%s %s%s", - (ptr_hook->plugin) ? - _("plugin:") : "weechat", - (ptr_hook->plugin) ? - ptr_hook->plugin->name : "", + "%s[%s%s%s] %s/%s %s%s", + GUI_COLOR(GUI_COLOR_CHAT_DELIMITERS), + GUI_COLOR(GUI_COLOR_CHAT), + plugin_get_name (ptr_hook->plugin), + GUI_COLOR(GUI_COLOR_CHAT_DELIMITERS), GUI_COLOR(GUI_COLOR_CHAT_BUFFER), HOOK_COMMAND(ptr_hook, command), GUI_COLOR(GUI_COLOR_CHAT), -- cgit v1.2.3