This commit is contained in:
topkecleon 2016-04-01 13:33:58 -04:00
commit cc4c1ea108

View File

@ -1158,6 +1158,7 @@ local action = function(msg)
for i,v in ipairs(commands) do for i,v in ipairs(commands) do
for key,val in pairs(v.triggers) do for key,val in pairs(v.triggers) do
if msg.text_lower:match(val) then if msg.text_lower:match(val) then
if msg.chat.type == 'private' then break end
if v.interior and not database.administration.groups[msg.chat.id_str] then if v.interior and not database.administration.groups[msg.chat.id_str] then
break break
end end