diff options
author | Test_User <hax@andrewyu.org> | 2022-07-06 12:32:17 -0400 |
---|---|---|
committer | Test_User <hax@andrewyu.org> | 2022-07-06 12:32:17 -0400 |
commit | e3d61f12fe302e7e72d97d8c718c6a372b334ff6 (patch) | |
tree | 9222bcef03932947230678025d2199d9e1aeb915 /stdin.lua | |
parent | 53be559cddb69466f200a6b033d7a57a90d359cc (diff) | |
download | py_coupserv-e3d61f12fe302e7e72d97d8c718c6a372b334ff6.tar.gz py_coupserv-e3d61f12fe302e7e72d97d8c718c6a372b334ff6.zip |
librenukes™
Diffstat (limited to 'stdin.lua')
-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, } |