Accept server-assigned nickname

This commit is contained in:
Sebastian Wicki 2011-11-07 20:15:18 +01:00
parent e3b566407e
commit c181583f39
1 changed files with 2 additions and 1 deletions

View File

@ -10,8 +10,9 @@ handlers["PING"] = function(o, prefix, query)
o:send("PONG :%s", query)
end
handlers["001"] = function(o)
handlers["001"] = function(o, prefix, me)
o.authed = true
o.nick = me
end
handlers["PRIVMSG"] = function(o, prefix, channel, message)