In Lua 5.1 lua_open directly calls luaL_newstate, but was deprecated.
In Lua 5.2 lua_open was removed.

Signed-off-by: Arvydas Sidorenko <[email protected]>
---
 src/plugins/scripts/lua/weechat-lua.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/plugins/scripts/lua/weechat-lua.c 
b/src/plugins/scripts/lua/weechat-lua.c
index 2b364d3..2cfea5f 100644
--- a/src/plugins/scripts/lua/weechat-lua.c
+++ b/src/plugins/scripts/lua/weechat-lua.c
@@ -261,7 +261,7 @@ weechat_lua_load (const char *filename)
     lua_current_script = NULL;
     lua_registered_script = NULL;
 
-    lua_current_interpreter = lua_open ();
+    lua_current_interpreter = luaL_newstate();
 
     if (lua_current_interpreter == NULL)
     {
-- 
1.7.8.6


_______________________________________________
Weechat-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/weechat-dev

Reply via email to