mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-01-12 11:00:25 +01:00
Check field before crashing IRC
This commit is contained in:
parent
ba5d1476c0
commit
0818c7996f
@ -77,7 +77,10 @@ end
|
|||||||
|
|
||||||
local function needNewNick(conn, msg)
|
local function needNewNick(conn, msg)
|
||||||
local newnick = conn.nickGenerator(msg.args[2])
|
local newnick = conn.nickGenerator(msg.args[2])
|
||||||
conn:queue(msg.nick(newnick))
|
if msg.nick then
|
||||||
|
conn:queue(msg.nick(newnick))
|
||||||
|
end
|
||||||
|
-- Ugly hack to fix crash
|
||||||
end
|
end
|
||||||
|
|
||||||
-- ERR_ERRONEUSNICKNAME (Misspelt but remains for historical reasons)
|
-- ERR_ERRONEUSNICKNAME (Misspelt but remains for historical reasons)
|
||||||
|
Loading…
Reference in New Issue
Block a user