diff options
| author | amelia squires <[email protected]> | 2024-09-11 00:02:08 -0500 |
|---|---|---|
| committer | amelia squires <[email protected]> | 2024-09-11 00:02:08 -0500 |
| commit | f776ebf34442e0ac6dfc46afd5ac47793db82ac3 (patch) | |
| tree | 25f1642859355d7cbe82a8b57549c2d2f52f8dbe /src/net/lua.c | |
| parent | e9cb2e0f75cbfa6bde188b9e043ebfd8d30b9451 (diff) | |
add res:stop
Diffstat (limited to 'src/net/lua.c')
| -rw-r--r-- | src/net/lua.c | 10 |
1 files changed, 10 insertions, 0 deletions
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) { |
