diff options
Diffstat (limited to '')
-rw-r--r-- | stdin.lua | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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, } |