diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2007-02-05 22:47:12 +0000 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2007-02-05 22:47:12 +0000 |
commit | fddd0416b9136fadcfe2667f7a485d50c0150f1a (patch) | |
tree | 855c62e216c85d1816e0c27c2a11c4104e3211de /src/plugins/scripts/lua | |
parent | 8e436c58cd2d2d914b93521263007d31e171ec18 (diff) | |
download | weechat-fddd0416b9136fadcfe2667f7a485d50c0150f1a.zip |
Added event handlers in plugin list commands outputs (/plugin and script commands)
Diffstat (limited to 'src/plugins/scripts/lua')
-rw-r--r-- | src/plugins/scripts/lua/weechat-lua.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/plugins/scripts/lua/weechat-lua.c b/src/plugins/scripts/lua/weechat-lua.c index 056d620ce..085ecb99e 100644 --- a/src/plugins/scripts/lua/weechat-lua.c +++ b/src/plugins/scripts/lua/weechat-lua.c @@ -2575,6 +2575,25 @@ weechat_lua_cmd (t_weechat_plugin *plugin, if (!handler_found) plugin->print_server (plugin, " (none)"); + /* list Lua event handlers */ + plugin->print_server (plugin, ""); + plugin->print_server (plugin, "Lua event handlers:"); + handler_found = 0; + for (ptr_handler = plugin->handlers; + ptr_handler; ptr_handler = ptr_handler->next_handler) + { + if ((ptr_handler->type == PLUGIN_HANDLER_EVENT) + && (ptr_handler->handler_args)) + { + handler_found = 1; + plugin->print_server (plugin, " %s => Lua(%s)", + ptr_handler->event, + ptr_handler->handler_args); + } + } + if (!handler_found) + plugin->print_server (plugin, " (none)"); + /* list Lua modifiers */ plugin->print_server (plugin, ""); plugin->print_server (plugin, "Lua modifiers:"); |