summaryrefslogtreecommitdiff
path: root/src/core/wee-command.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2007-12-13 11:47:12 +0100
committerSebastien Helleu <flashcode@flashtux.org>2007-12-13 11:47:12 +0100
commit2e74526bb9691389160b8174a69f272c4c3fc1e2 (patch)
tree8f27fee7f436113971d5deaf1dfb40f8b742ac87 /src/core/wee-command.c
parent7a8fb5b2da202562b67c81fd9f08a731ba3eb024 (diff)
downloadweechat-2e74526bb9691389160b8174a69f272c4c3fc1e2.zip
Renamed hook "event" to "signal"
Diffstat (limited to 'src/core/wee-command.c')
-rw-r--r--src/core/wee-command.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/core/wee-command.c b/src/core/wee-command.c
index d0b93696a..c2b9b9d78 100644
--- a/src/core/wee-command.c
+++ b/src/core/wee-command.c
@@ -992,21 +992,21 @@ command_plugin_list (char *name, int full)
}
}
- /* events hooked */
+ /* signals hooked */
hook_found = 0;
for (ptr_hook = weechat_hooks; ptr_hook;
ptr_hook = ptr_hook->next_hook)
{
if ((ptr_hook->plugin == ptr_plugin)
- && (ptr_hook->type == HOOK_TYPE_EVENT))
+ && (ptr_hook->type == HOOK_TYPE_SIGNAL))
{
if (!hook_found)
- gui_chat_printf (NULL, _(" events hooked:"));
+ gui_chat_printf (NULL, _(" signals hooked:"));
hook_found = 1;
gui_chat_printf (NULL,
- _(" event: %s"),
- HOOK_EVENT(ptr_hook, event) ?
- HOOK_EVENT(ptr_hook, event) : _("(all)"));
+ _(" signal: %s"),
+ HOOK_SIGNAL(ptr_hook, signal) ?
+ HOOK_SIGNAL(ptr_hook, signal) : _("(all)"));
}
}
@@ -1139,9 +1139,9 @@ command_quit (void *data, void *buffer,
(void) argc;
(void) argv;
- hook_event_exec ("quit",
- (argc > 1) ?
- argv_eol[1] : CONFIG_STRING(config_look_default_msg_quit));
+ hook_signal_exec ("quit",
+ (argc > 1) ?
+ argv_eol[1] : CONFIG_STRING(config_look_default_msg_quit));
quit_weechat = 1;
@@ -1184,7 +1184,7 @@ command_reload (void *data, void *buffer,
gui_chat_prefix[GUI_CHAT_PREFIX_ERROR]);
/* tell to plugins to reload their configuration */
- (void) hook_event_exec ("config_reload", NULL);
+ hook_signal_exec ("config_reload", NULL);
return WEECHAT_RC_OK;
}