diff --git a/other_things/irc-old-save/irc/handlers.lua b/other_things/irc-old-save/irc/handlers.lua index c53a4df1..91f9e3fc 100755 --- a/other_things/irc-old-save/irc/handlers.lua +++ b/other_things/irc-old-save/irc/handlers.lua @@ -77,7 +77,10 @@ end local function needNewNick(conn, msg) 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 -- ERR_ERRONEUSNICKNAME (Misspelt but remains for historical reasons)