Accept server-assigned nickname
This commit is contained in:
parent
e3b566407e
commit
c181583f39
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue