mirror of
https://github.com/weechat/weechat.git
synced 2026-07-06 17:53:13 +02:00
Improve output of /plugin list and listfull
This commit is contained in:
+25
-11
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user