Stats only for chats
This commit is contained in:
parent
5cc95b6ee4
commit
68050fe52a
@ -90,10 +90,13 @@ local function get_stats_status( msg )
|
||||
end
|
||||
|
||||
local function run(msg, matches)
|
||||
if matches[1] == "stats" then -- Hack
|
||||
if matches[1] == "stats" then
|
||||
if msg.to.type == 'chat' then
|
||||
return get_stats_status(msg)
|
||||
else
|
||||
print ("update stats")
|
||||
return 'Stats works only chats'
|
||||
end
|
||||
else
|
||||
update_user_stats(msg)
|
||||
save_stats()
|
||||
end
|
||||
|
Reference in New Issue
Block a user