Revert "Add hexchat_send_raw to the Lua plugin"

This reverts commit f7412d513a.
This commit is contained in:
Jesse 2017-01-30 16:35:30 -05:00
parent e6dd9ac9ab
commit 3d0a3e746d

View File

@ -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");