sudo users can read user stats

This commit is contained in:
yago 2015-04-12 17:56:44 +02:00
parent 68050fe52a
commit e269a00ba2

View File

@ -91,7 +91,7 @@ end
local function run(msg, matches)
if matches[1] == "stats" then
if msg.to.type == 'chat' then
if msg.to.type == 'chat' or is_sudo(msg) then
return get_stats_status(msg)
else
return 'Stats works only chats'