1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-25 20:36:38 +02:00

fix bugs in get_buffer_data() which breaks the retrieval of buffer content (perl, lua)

This commit is contained in:
Emmanuel Bouthenot
2006-08-26 21:18:10 +00:00
parent 56ebcb53eb
commit 9905ee774b
4 changed files with 10 additions and 6 deletions
+3 -3
View File
@@ -1767,8 +1767,8 @@ weechat_lua_get_buffer_data (lua_State *L)
server = lua_tostring (lua_current_interpreter, -1);
break;
case 2:
channel = lua_tostring (lua_current_interpreter, -2);
server = lua_tostring (lua_current_interpreter, -1);
server = lua_tostring (lua_current_interpreter, -2);
channel = lua_tostring (lua_current_interpreter, -1);
break;
default:
lua_plugin->print_server (lua_plugin,
@@ -1777,7 +1777,7 @@ weechat_lua_get_buffer_data (lua_State *L)
lua_pushnumber (lua_current_interpreter, 0);
return 1;
}
buffer_data = lua_plugin->get_buffer_data (lua_plugin, (char *) server, (char *) channel);
if (!buffer_data)
{