save user last name

This commit is contained in:
yago
2014-11-23 14:34:46 +01:00
parent 48b17bd5d0
commit 1c96903cc0
2 changed files with 16 additions and 3 deletions

View File

@@ -9,7 +9,11 @@ function run(msg, matches)
local text = ""
for id, user in pairs(_users) do
text = text..user.name..": "..user.msg_num.."\n"
if user.last_name == nil then
text = text..user.name..": "..user.msg_num.."\n"
else
text = text..user.name.." "..user.last_name..": "..user.msg_num.."\n"
end
end
return text
end