From e269a00ba249c66942089feaafa9f4716867887f Mon Sep 17 00:00:00 2001 From: yago Date: Sun, 12 Apr 2015 17:56:44 +0200 Subject: [PATCH] sudo users can read user stats --- plugins/stats.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/stats.lua b/plugins/stats.lua index 2a57d27..579dbdd 100644 --- a/plugins/stats.lua +++ b/plugins/stats.lua @@ -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'