summaryrefslogtreecommitdiff
path: root/stdin.lua
diff options
context:
space:
mode:
authorTest_User <hax@andrewyu.org>2022-08-05 00:03:52 -0400
committerTest_User <hax@andrewyu.org>2022-08-05 00:03:52 -0400
commitc3c84a3c6aa633d0833f74d6ce1c99397a7fa8e2 (patch)
tree5ef911b7e034c5b5b9aa22b105bad5900ff4742a /stdin.lua
parente3d61f12fe302e7e72d97d8c718c6a372b334ff6 (diff)
downloadcoupserv-c3c84a3c6aa633d0833f74d6ce1c99397a7fa8e2.tar.gz
coupserv-c3c84a3c6aa633d0833f74d6ce1c99397a7fa8e2.zip
fix missing license to old CoupServ.py
Diffstat (limited to 'stdin.lua')
-rw-r--r--stdin.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/stdin.lua b/stdin.lua
index 11a7c28..4b69590 100644
--- a/stdin.lua
+++ b/stdin.lua
@@ -121,4 +121,12 @@ stdin_commands = {
print(bash_command)
end
end,
+
+ ["SET_CHANNEL"] = function(con, msg, args)
+ cur_channel = args[1]
+ end,
+
+ ["M"] = function(con, msg, args)
+ con:send(":1HC000000 PRIVMSG "..cur_channel.." :"..table.concat(args, " ").."\n")
+ end,
}