1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-02 07:46:38 +02:00

Added event handlers in plugin list commands outputs (/plugin and script commands)

This commit is contained in:
Sebastien Helleu
2007-02-05 22:47:12 +00:00
parent 8e436c58cd
commit fddd0416b9
24 changed files with 1360 additions and 1028 deletions
+17
View File
@@ -2411,6 +2411,23 @@ weechat_cmd_plugin_list (char *name, int full)
else
gui_printf (NULL, _(" %d defined\n"),
handler_found);
/* event handlers */
irc_display_prefix (NULL, NULL, PREFIX_PLUGIN);
gui_printf (NULL, _(" event handlers:\n"));
handler_found = 0;
for (ptr_handler = ptr_plugin->handlers;
ptr_handler; ptr_handler = ptr_handler->next_handler)
{
if (ptr_handler->type == PLUGIN_HANDLER_EVENT)
handler_found++;
}
irc_display_prefix (NULL, NULL, PREFIX_PLUGIN);
if (!handler_found)
gui_printf (NULL, _(" (no event handler)\n"));
else
gui_printf (NULL, _(" %d defined\n"),
handler_found);
/* modifiers */
irc_display_prefix (NULL, NULL, PREFIX_PLUGIN);