1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-07-29 12:50:24 +02:00

Updated IRC to handle mod security

- Solves part of #47
This commit is contained in:
LeMagnesium
2015-07-05 15:31:21 +02:00
parent 6aebcc4a4e
commit 8076227918
6 changed files with 59 additions and 22 deletions

View File

@ -1,8 +1,10 @@
-- This file is licensed under the terms of the BSD 2-clause license.
-- See LICENSE.txt for details.
local ie = ...
-- MIME is part of LuaSocket
local b64e = require("mime").b64
local b64e = ie.require("mime").b64
irc.hooks = {}
irc.registered_hooks = {}
@ -252,7 +254,7 @@ function irc.hooks.preregister(conn)
conn:send("CAP REQ sasl")
conn:send("AUTHENTICATE PLAIN")
conn:send("AUTHENTICATE "..authString)
--LuaIRC will send CAP END
conn:send("CAP END")
end