diff options
Diffstat (limited to 'src/plugins/plugin-api.c')
-rw-r--r-- | src/plugins/plugin-api.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/plugins/plugin-api.c b/src/plugins/plugin-api.c index f957b7b2d..968cf0dc7 100644 --- a/src/plugins/plugin-api.c +++ b/src/plugins/plugin-api.c @@ -1367,16 +1367,16 @@ plugin_api_hook_print (struct t_weechat_plugin *plugin, void *buffer, } /* - * plugin_api_hook_event: hook an event + * plugin_api_hook_signal: hook a signal */ struct t_hook * -plugin_api_hook_event (struct t_weechat_plugin *plugin, char *event, - int (*callback)(void *, char *, void *), - void *data) +plugin_api_hook_signal (struct t_weechat_plugin *plugin, char *signal, + int (*callback)(void *, char *, void *), + void *data) { - if (plugin && event && event[0] && callback) - return hook_event (plugin, event, callback, data); + if (plugin && signal && signal[0] && callback) + return hook_signal (plugin, signal, callback, data); return NULL; } |