From 3d0a3e746d465d9d56616935386b0bda7bb062c8 Mon Sep 17 00:00:00 2001 From: Jesse Date: Mon, 30 Jan 2017 16:35:30 -0500 Subject: [PATCH] Revert "Add hexchat_send_raw to the Lua plugin" This reverts commit f7412d513a64f03b522a804ebf9a2d9db1011e92. --- plugins/lua/lua.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/plugins/lua/lua.c b/plugins/lua/lua.c index 66410825..0dc7aeda 100644 --- a/plugins/lua/lua.c +++ b/plugins/lua/lua.c @@ -776,13 +776,6 @@ static int api_hexchat_iterate(lua_State *L) return luaL_argerror(L, 1, "invalid list name"); } -static int api_hexchat_send_raw(lua_State *L) -{ - //hexchat_print(ph, lua_tostring(L, -1)); - hexchat_send_raw(ph, lua_tostring(L, -1)); - return 0; -} - static int api_hexchat_prefs_meta_index(lua_State *L) { char const *key = luaL_checkstring(L, 2); @@ -1052,7 +1045,6 @@ static luaL_Reg api_hexchat[] = { {"set_context", api_hexchat_set_context}, {"attrs", api_hexchat_attrs}, {"iterate", api_hexchat_iterate}, - {"send_raw", api_hexchat_send_raw }, {NULL, NULL} }; @@ -1145,7 +1137,6 @@ static int luaopen_hexchat(lua_State *L) wrap_context(L, "nickcmp", api_hexchat_nickcmp); wrap_context(L, "get_info", api_hexchat_get_info); wrap_context(L, "iterate", api_hexchat_iterate); - wrap_context(L, "send_raw", api_hexchat_send_raw); lua_setfield(L, -2, "__index"); lua_pushcfunction(L, api_hexchat_context_meta_eq); lua_setfield(L, -2, "__eq");