mirror of
https://github.com/weechat/weechat.git
synced 2026-07-04 08:43:13 +02:00
scripts: fix script interpreter used after register during load of script in python/perl/ruby/lua/guile plugins (bug #41345)
This commit is contained in:
@@ -156,6 +156,7 @@ weechat_lua_api_register (lua_State *L)
|
||||
"version %s (%s)"),
|
||||
LUA_PLUGIN_NAME, name, version, description);
|
||||
}
|
||||
lua_current_script->interpreter = (lua_State *) lua_current_interpreter;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -445,8 +445,6 @@ weechat_lua_load (const char *filename)
|
||||
}
|
||||
lua_current_script = lua_registered_script;
|
||||
|
||||
lua_current_script->interpreter = (lua_State *) lua_current_interpreter;
|
||||
|
||||
/*
|
||||
* set input/close callbacks for buffers created by this script
|
||||
* (to restore callbacks after upgrade)
|
||||
|
||||
Reference in New Issue
Block a user