summaryrefslogtreecommitdiff
path: root/stdin.lua
diff options
context:
space:
mode:
authorTest_User <hax@andrewyu.org>2022-07-06 12:32:17 -0400
committerTest_User <hax@andrewyu.org>2022-07-06 12:32:17 -0400
commite3d61f12fe302e7e72d97d8c718c6a372b334ff6 (patch)
tree9222bcef03932947230678025d2199d9e1aeb915 /stdin.lua
parent53be559cddb69466f200a6b033d7a57a90d359cc (diff)
downloadcoupserv-e3d61f12fe302e7e72d97d8c718c6a372b334ff6.tar.gz
coupserv-e3d61f12fe302e7e72d97d8c718c6a372b334ff6.zip
librenukes™
Diffstat (limited to 'stdin.lua')
-rw-r--r--stdin.lua10
1 files changed, 10 insertions, 0 deletions
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,
}