Merge pull request #5 from gandro/master

Use server-assigned nickname
This commit is contained in:
JakobOvrum 2011-11-07 23:09:57 -08:00
commit ad53b2aeb1
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)