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

Added new return codes for plugin handlers, to discard messages for WeeChat, plugins, or both.

This commit is contained in:
Sebastien Helleu
2005-10-28 07:31:21 +00:00
parent 232b5684ca
commit e26772dcdb
28 changed files with 2750 additions and 2158 deletions
+5 -5
View File
@@ -57,7 +57,7 @@ weechat_ruby_exec (t_weechat_plugin *plugin,
(void) arguments;
/* TODO: exec Ruby script */
return 0;
return PLUGIN_RC_OK;
}
/*
@@ -72,9 +72,8 @@ weechat_ruby_handler (t_weechat_plugin *plugin,
/* make gcc happy */
(void) command;
weechat_ruby_exec (plugin, (t_plugin_script *)handler_pointer,
handler_args, server, arguments);
return 1;
return weechat_ruby_exec (plugin, (t_plugin_script *)handler_pointer,
handler_args, server, arguments);
}
/*
@@ -962,7 +961,8 @@ weechat_plugin_init (t_weechat_plugin *plugin)
weechat_script_auto_load (plugin, "ruby", weechat_ruby_load);
return 1;
/* init ok */
return PLUGIN_RC_OK;
}
/*