summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2010-07-07 12:06:20 +0200
committerSebastien Helleu <flashcode@flashtux.org>2010-07-07 12:06:20 +0200
commit869e4448b944c0cca0601588126f7a5e400b856e (patch)
treed824e22eca725643d7f711f44bdad7f281105804
parentf4952f5588c53c08fbd287abd4d0fae7240d8ff8 (diff)
downloadweechat-869e4448b944c0cca0601588126f7a5e400b856e.zip
Improve output of /plugin list and listfull
-rw-r--r--src/core/wee-command.c36
1 files changed, 25 insertions, 11 deletions
diff --git a/src/core/wee-command.c b/src/core/wee-command.c
index 0bf9b5eab..abd55d9c9 100644
--- a/src/core/wee-command.c
+++ b/src/core/wee-command.c
@@ -2643,19 +2643,23 @@ command_plugin_list (const char *name, int full)
{
plugins_found++;
- /* plugin info */
- gui_chat_printf (NULL, "");
- gui_chat_printf (NULL,
- " %s%s%s v%s - %s (%s)",
- GUI_COLOR(GUI_COLOR_CHAT_BUFFER),
- ptr_plugin->name,
- GUI_COLOR(GUI_COLOR_CHAT),
- ptr_plugin->version,
- ptr_plugin->description,
- ptr_plugin->filename);
-
if (full)
{
+ gui_chat_printf (NULL, "");
+
+ /* plugin info */
+ gui_chat_printf (NULL,
+ " %s%s %s[%sv%s%s]%s: %s (%s)",
+ GUI_COLOR(GUI_COLOR_CHAT_BUFFER),
+ ptr_plugin->name,
+ GUI_COLOR(GUI_COLOR_CHAT_DELIMITERS),
+ GUI_COLOR(GUI_COLOR_CHAT),
+ ptr_plugin->version,
+ GUI_COLOR(GUI_COLOR_CHAT_DELIMITERS),
+ GUI_COLOR(GUI_COLOR_CHAT),
+ ptr_plugin->description,
+ ptr_plugin->filename);
+
/* second line of plugin info */
gui_chat_printf (NULL,
_(" written by \"%s\", license: %s"),
@@ -2888,6 +2892,16 @@ command_plugin_list (const char *name, int full)
}
}
}
+ else
+ {
+ /* plugin info */
+ gui_chat_printf (NULL,
+ " %s%s%s: %s",
+ GUI_COLOR(GUI_COLOR_CHAT_BUFFER),
+ ptr_plugin->name,
+ GUI_COLOR(GUI_COLOR_CHAT),
+ ptr_plugin->description);
+ }
}
}
if (plugins_found == 0)