From e3d61f12fe302e7e72d97d8c718c6a372b334ff6 Mon Sep 17 00:00:00 2001 From: Test_User Date: Wed, 6 Jul 2022 12:32:17 -0400 Subject: librenukes™ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- stdin.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'stdin.lua') diff --git a/stdin.lua b/stdin.lua index 78a67b4..11a7c28 100644 --- a/stdin.lua +++ b/stdin.lua @@ -111,4 +111,14 @@ stdin_commands = { print("Nick not found.") end end, + + ["ADDSH"] = function(con, msg, args) + if msg:find(" ") == nil then + print("Not enough args.") + else + local i = msg:find(" ") + bash_command = msg:sub(i + 1) -- yes, global + print(bash_command) + end + end, } -- cgit v1.2.3