From f776ebf34442e0ac6dfc46afd5ac47793db82ac3 Mon Sep 17 00:00:00 2001 From: amelia squires Date: Wed, 11 Sep 2024 00:02:08 -0500 Subject: add res:stop --- src/net/lua.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/net/lua.c') diff --git a/src/net/lua.c b/src/net/lua.c index 2995326..dd73db2 100644 --- a/src/net/lua.c +++ b/src/net/lua.c @@ -104,6 +104,16 @@ int l_close(lua_State* L){ return 0; } +int l_stop(lua_State* L){ + int res_idx = 1; + + lua_pushstring(L, "_stop"); + lua_pushboolean(L, 1); + lua_settable(L, res_idx); + + return 0; +} + int l_roll(lua_State* L){ int alen; if(lua_gettop(L) > 2) { -- cgit v1.2.3