diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2008-01-11 15:08:36 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2008-01-11 15:08:36 +0100 |
commit | add64d6f477c8c1768f98c8a8c03d7b207a87a6b (patch) | |
tree | b8635079f0e165f15d654b7d62fc9a396677643c /src/plugins/scripts/lua/lua.c | |
parent | 8a6729991214cbf02fe200940d7e0a5e39c90efc (diff) | |
download | weechat-add64d6f477c8c1768f98c8a8c03d7b207a87a6b.zip |
New arguments for function "register" in scripts (author, license), with optional check of license when script is loaded
Diffstat (limited to 'src/plugins/scripts/lua/lua.c')
-rw-r--r-- | src/plugins/scripts/lua/lua.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/scripts/lua/lua.c b/src/plugins/scripts/lua/lua.c index 8ced9008b..36357ad02 100644 --- a/src/plugins/scripts/lua/lua.c +++ b/src/plugins/scripts/lua/lua.c @@ -2419,7 +2419,7 @@ weechat_lua_unload (t_weechat_plugin *plugin, t_plugin_script *script) "Unloading Lua script \"%s\"", script->name); - if (script->shutdown_func[0]) + if (script->shutdow_func && script->shutdown_func[0]) { r = weechat_lua_exec (plugin, script, SCRIPT_EXEC_INT, script->shutdown_func, NULL, NULL, NULL); @@ -2712,6 +2712,7 @@ weechat_plugin_init (t_weechat_plugin *plugin) plugin->mkdir_home (plugin, "lua"); plugin->mkdir_home (plugin, "lua/autoload"); + script_init (weechat_lua_plugin); weechat_script_auto_load (plugin, "lua", weechat_lua_load); /* init ok */ |