1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-12-24 17:50:37 +01:00

Check field before crashing IRC

This commit is contained in:
LeMagnesium 2015-08-19 01:44:33 +02:00
parent ba5d1476c0
commit 0818c7996f

View File

@ -77,8 +77,11 @@ end
local function needNewNick(conn, msg)
local newnick = conn.nickGenerator(msg.args[2])
if msg.nick then
conn:queue(msg.nick(newnick))
end
-- Ugly hack to fix crash
end
-- ERR_ERRONEUSNICKNAME (Misspelt but remains for historical reasons)
handlers["432"] = needNewNick