diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2007-12-09 11:47:34 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2007-12-09 11:47:34 +0100 |
commit | 8b3980f508972313c89a7fcb5a96fed3dccff7cc (patch) | |
tree | f682355eef676f21df31c43488c55e618b199529 /src/plugins/demo/demo.c | |
parent | 30ab415dc0024bd0e1fdb0b3a72dc8ec8f4c96c5 (diff) | |
download | weechat-8b3980f508972313c89a7fcb5a96fed3dccff7cc.zip |
Changes in IRC plugin to use new API
Diffstat (limited to 'src/plugins/demo/demo.c')
-rw-r--r-- | src/plugins/demo/demo.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/demo/demo.c b/src/plugins/demo/demo.c index 5a639f2f2..151a8e282 100644 --- a/src/plugins/demo/demo.c +++ b/src/plugins/demo/demo.c @@ -284,14 +284,14 @@ weechat_plugin_init (struct t_weechat_plugin *plugin) _("[text]"), _("text: write some text on current buffer"), "", - demo_printf_command_cb, NULL); + &demo_printf_command_cb, NULL); weechat_hook_command ("demo_buffer", _("open a new buffer"), _("category name"), "", "", - demo_buffer_command_cb, NULL); + &demo_buffer_command_cb, NULL); weechat_hook_command ("demo_infolist", _("demo command: get and display list"), @@ -299,7 +299,7 @@ weechat_plugin_init (struct t_weechat_plugin *plugin) _("infolist: infolist to display (values: buffer, " "buffer_lines)"), "buffer|buffer_lines", - demo_infolist_command_cb, NULL); + &demo_infolist_command_cb, NULL); weechat_hook_command ("demo_info", _("demo command: get and display info"), @@ -311,9 +311,9 @@ weechat_plugin_init (struct t_weechat_plugin *plugin) "version|weechat_dir|weechat_libdir|" "weechat_sharedir|charset_terminal|charset_internal|" "inactivity|input|input_mask|input_pos", - demo_info_command_cb, NULL); + &demo_info_command_cb, NULL); - weechat_hook_event ("*", demo_event_cb, NULL); + weechat_hook_event ("*", &demo_event_cb, NULL); return PLUGIN_RC_SUCCESS; } |