mirror of
https://github.com/weechat/weechat.git
synced 2026-06-25 20:36:38 +02:00
scripts: reset current script pointer when load of script fails in python/perl/ruby/lua/tcl plugins
This commit is contained in:
@@ -425,8 +425,10 @@ weechat_lua_load (const char *filename)
|
||||
/* if script was registered, remove it from list */
|
||||
if (lua_current_script)
|
||||
{
|
||||
plugin_script_remove (weechat_lua_plugin, &lua_scripts, &last_lua_script,
|
||||
plugin_script_remove (weechat_lua_plugin,
|
||||
&lua_scripts, &last_lua_script,
|
||||
lua_current_script);
|
||||
lua_current_script = NULL;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user