summaryrefslogtreecommitdiff
path: root/src/plugins/demo
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/plugins/demo
parent7a8fb5b2da202562b67c81fd9f08a731ba3eb024 (diff)
downloadweechat-2e74526bb9691389160b8174a69f272c4c3fc1e2.zip
Renamed hook "event" to "signal"
Diffstat (limited to 'src/plugins/demo')
-rw-r--r--src/plugins/demo/demo.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/demo/demo.c b/src/plugins/demo/demo.c
index 5a87ff3c4..186f95218 100644
--- a/src/plugins/demo/demo.c
+++ b/src/plugins/demo/demo.c
@@ -254,18 +254,18 @@ demo_info_command_cb (void *data, void *buffer, int argc, char **argv,
}
/*
- * demo_event_cb: callback for event hook
+ * demo_signal_cb: callback for signal hook
*/
int
-demo_event_cb (void *data, char *event, void *pointer)
+demo_signal_cb (void *data, char *signal, void *pointer)
{
/* make C compiler happy */
(void) data;
weechat_printf (NULL,
- _("demo_event: event: %s, pointer: %X"),
- event, pointer);
+ _("demo_signal: signal: %s, pointer: %X"),
+ signal, pointer);
return WEECHAT_RC_OK;
}
@@ -313,7 +313,7 @@ weechat_plugin_init (struct t_weechat_plugin *plugin)
"inactivity|input|input_mask|input_pos",
&demo_info_command_cb, NULL);
- weechat_hook_event ("*", &demo_event_cb, NULL);
+ weechat_hook_signal ("*", &demo_signal_cb, NULL);
return WEECHAT_RC_OK;
}