1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-04 16:53:14 +02:00

Event hook added

This commit is contained in:
Sebastien Helleu
2007-11-11 13:34:43 +01:00
parent 60428b0d2e
commit 4478777876
10 changed files with 558 additions and 332 deletions
+3 -3
View File
@@ -295,11 +295,11 @@ fifo_read ()
}
/*
* fifo_config: fifo config callback (called when fifo option is changed)
* fifo_config_cb: fifo config callback (called when fifo option is changed)
*/
static int
fifo_config (void *data, char *type, char *option, char *value)
fifo_config_cb (void *data, char *type, char *option, char *value)
{
/* make C compiler happy */
(void) data;
@@ -333,7 +333,7 @@ weechat_plugin_init (struct t_weechat_plugin *plugin)
fifo_fd_hook = weechat_hook_fd (fifo_fd, 1, 0, 0, fifo_read, NULL);
weechat_hook_config ("plugin", "fifo.fifo", fifo_config, NULL);
weechat_hook_config ("plugin", "fifo.fifo", fifo_config_cb, NULL);
return PLUGIN_RC_SUCCESS;
}