mirror of
https://github.com/weechat/weechat.git
synced 2026-07-06 09:43:13 +02:00
Add hook type "command_run", add new function "string_remove_color" in plugin API (task #9089)
This commit is contained in:
@@ -2090,6 +2090,21 @@ command_plugin_list (const char *name, int full)
|
||||
}
|
||||
}
|
||||
|
||||
/* command_run hooked */
|
||||
hook_found = 0;
|
||||
for (ptr_hook = weechat_hooks[HOOK_TYPE_COMMAND_RUN]; ptr_hook;
|
||||
ptr_hook = ptr_hook->next_hook)
|
||||
{
|
||||
if (!ptr_hook->deleted && (ptr_hook->plugin == ptr_plugin))
|
||||
{
|
||||
if (!hook_found)
|
||||
gui_chat_printf (NULL, _(" command_run hooked:"));
|
||||
hook_found = 1;
|
||||
gui_chat_printf (NULL, " %s",
|
||||
HOOK_COMMAND_RUN(ptr_hook, command));
|
||||
}
|
||||
}
|
||||
|
||||
/* timers hooked */
|
||||
hook_found = 0;
|
||||
for (ptr_hook = weechat_hooks[HOOK_TYPE_TIMER]; ptr_hook;
|
||||
|
||||
Reference in New Issue
Block a user