diff options
-rw-r--r-- | src/plugins/scripts/lua/weechat-lua.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/scripts/lua/weechat-lua.c b/src/plugins/scripts/lua/weechat-lua.c index a02f49c53..1179783f7 100644 --- a/src/plugins/scripts/lua/weechat-lua.c +++ b/src/plugins/scripts/lua/weechat-lua.c @@ -326,10 +326,12 @@ weechat_lua_load (const char *filename) lua_tostring (lua_current_interpreter, -1)); lua_close (lua_current_interpreter); fclose (fp); - /* if script was registered, removing from list */ + + /* if script was registered, remove it from list */ if (lua_current_script) script_remove (weechat_lua_plugin, &lua_scripts, &last_lua_script, lua_current_script); + return 0; } fclose (fp); |