summaryrefslogtreecommitdiff
path: root/network.lua
diff options
context:
space:
mode:
Diffstat (limited to 'network.lua')
-rw-r--r--network.lua14
1 files changed, 10 insertions, 4 deletions
diff --git a/network.lua b/network.lua
index 84cb712..bd988eb 100644
--- a/network.lua
+++ b/network.lua
@@ -157,6 +157,12 @@ message_handler = {
end
end,
+ ["SQUIT"] = function(con, sourge, args, original)
+ if juped_list and juped_list[args[1]] then
+ con:send(":"..config.sid.." SERVER "..servlist[args[1]].address.." * 0 "..args[1].." :Juped.\n")
+ end
+ end,
+
["METADATA"] = function(con, source, args, original)
if args[1] == "*" then
if servlist[source] then
@@ -239,10 +245,10 @@ message_handler = {
print(("%q"):format(userlist[source].nick.." executed command: "..cmd))
return commands[cmd].func(con, source, cmd, cmd_args, resp)
else
- con:send(":1HC000000 NOTICE "..resp.." :You are not authorized to execute that command.\n")
+ con:send(":"..config.sid.."000000 NOTICE "..resp.." :You are not authorized to execute that command.\n")
end
else
- con:send(":1HC000000 NOTICE "..resp.." :Unknown command: "..cmd.."\n")
+ con:send(":"..config.sid.."000000 NOTICE "..resp.." :Unknown command: "..cmd.."\n")
end
end,
@@ -271,7 +277,7 @@ message_handler = {
end,
["KILL"] = function(con, source, args, original)
- if args[1]:sub(1,3) ~= "1HC" then
+ if args[1]:sub(1,3) ~= config.sid then
print("Kill remote", original)
userlist[source] = nil
for name, chan in pairs(chanlist) do
@@ -296,7 +302,7 @@ message_handler = {
end,
["KICK"] = function(con, soure, args, original)
- if args[2]:sub(1,3) == "1HC" then
+ if args[2]:sub(1,3) == config.sid then
con:send(":"..args[2].." JOIN "..args[1].."\n")
con:send("MODE "..args[1].." +o "..args[2].."\n")
else