Stats are private by Chat
This commit is contained in:
@@ -8,11 +8,13 @@ function run(msg, matches)
|
||||
file_users:close()
|
||||
|
||||
local text = ""
|
||||
for id, user in pairs(_users) do
|
||||
local to_id = tostring(msg.to.id)
|
||||
|
||||
for id, user in pairs(_users[to_id]) do
|
||||
if user.last_name == nil then
|
||||
text = text..user.name..": "..user.msg_num.."\n"
|
||||
text = text..user.name.." ["..id.."]: "..user.msg_num.."\n"
|
||||
else
|
||||
text = text..user.name.." "..user.last_name..": "..user.msg_num.."\n"
|
||||
text = text..user.name.." "..user.last_name.." ["..id.."]: "..user.msg_num.."\n"
|
||||
end
|
||||
end
|
||||
return text
|
||||
|
Reference in New Issue
Block a user