Fixed access parsing

This commit is contained in:
Jakob 2010-06-01 14:18:51 +02:00
parent b104df15cc
commit a8211a7678
2 changed files with 6 additions and 1 deletions

View File

@ -177,7 +177,8 @@ handlers["353"] = function(o, prefix, me, chanType, channel, names)
local users = o.channels[channel].users
for nick in names:gmatch("(%S+)") do
users[nick] = {}
local access, name = parseNick(nick)
users[name] = {type = access}
end
end
end

View File

@ -36,6 +36,10 @@ function parse(line)
return prefix, cmd, params
end
function parseNick(nick)
return nick:match("^([%+@]?)(.+)$")
end
function parsePrefix(prefix)
local user = {}
if prefix then