Check channel enabled as pre_processor

This commit is contained in:
yago
2015-04-12 23:08:42 +02:00
parent 0438abeee3
commit dca731c18e
3 changed files with 60 additions and 42 deletions

View File

@ -177,20 +177,6 @@ function is_sudo(msg)
return var
end
function is_disabled(msg)
local var = false
if msg.text == "!channel enable" then
return var
end
-- Check users id in config
for v,channel in pairs(_config.disabled_channels) do
if channel == msg.to.id then
var = true
end
end
return var
end
-- Returns the name of the sender
function get_name(msg)
local name = msg.from.first_name