summaryrefslogtreecommitdiff
path: root/src/core/wee-command.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2009-02-08 19:52:16 +0100
committerSebastien Helleu <flashcode@flashtux.org>2009-02-08 19:52:16 +0100
commit29bc0276bc6d4495f75aa94ef246c3863bf46656 (patch)
treea864d9f76c40a680f21d59fbf17e94ef3217635c /src/core/wee-command.c
parenta253398165d6f18bf60d916f97d69a2ad3619e48 (diff)
downloadweechat-29bc0276bc6d4495f75aa94ef246c3863bf46656.zip
Add hook type "command_run", add new function "string_remove_color" in plugin API (task #9089)
Diffstat (limited to 'src/core/wee-command.c')
-rw-r--r--src/core/wee-command.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/core/wee-command.c b/src/core/wee-command.c
index 427398ef5..186394ce1 100644
--- a/src/core/wee-command.c
+++ b/src/core/wee-command.c
@@ -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;