summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorArvydas Sidorenko <asido4@gmail.com>2012-07-03 11:32:09 +0200
committerSebastien Helleu <flashcode@flashtux.org>2012-07-03 11:32:09 +0200
commite84099fb97d33fd80986be123cf85ca47d88ddef (patch)
treec5a0d353d3c410847f4ad60c721eb5a3eb18057d /src/plugins
parent2f59774e7941bf06657d2ba0d1aabbb14945ac20 (diff)
downloadweechat-e84099fb97d33fd80986be123cf85ca47d88ddef.zip
lua: replace lua_open by luaL_newstate (compatibility with Lua 5.2)
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 <asido4@gmail.com>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/scripts/lua/weechat-lua.c2
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 2b364d38e..2cfea5f5e 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)
{