mirror of
https://github.com/weechat/weechat.git
synced 2026-07-05 01:03:14 +02:00
New arguments for function "register" in scripts (author, license), with optional check of license when script is loaded
This commit is contained in:
@@ -2273,7 +2273,7 @@ weechat_ruby_unload (t_weechat_plugin *plugin, t_plugin_script *script)
|
||||
"Unloading Ruby script \"%s\"",
|
||||
script->name);
|
||||
|
||||
if (script->shutdown_func[0])
|
||||
if (script->shutdown_func && script->shutdown_func[0])
|
||||
{
|
||||
r = (int *) weechat_ruby_exec (plugin, script, SCRIPT_EXEC_INT,
|
||||
script->shutdown_func, NULL, NULL, NULL);
|
||||
@@ -2675,7 +2675,8 @@ weechat_plugin_init (t_weechat_plugin *plugin)
|
||||
"Ruby error: %s", STR2CSTR(ruby_error_info));
|
||||
return PLUGIN_RC_KO;
|
||||
}
|
||||
|
||||
|
||||
script_init (weechat_ruby_plugin);
|
||||
weechat_script_auto_load (plugin, "ruby", weechat_ruby_load);
|
||||
|
||||
/* init ok */
|
||||
|
||||
Reference in New Issue
Block a user