summaryrefslogtreecommitdiff
path: root/stdin.lua
diff options
context:
space:
mode:
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,
}