removed is_disabled on msg_vaild. Fix

This commit is contained in:
yago 2015-04-12 23:21:37 +02:00
parent dca731c18e
commit d35a3e8770
2 changed files with 4 additions and 6 deletions

View File

@ -34,20 +34,18 @@ function msg_valid(msg)
print("Not valid, msg from us")
return false
end
-- Before bot was started
if msg.date < now then
print("Not valid, old msg")
return false
end
if msg.unread == 0 then
print("Not valid, readed")
return false
end
if is_disabled(msg) then
print("Disabled channel")
return false
end
return true
end

View File

@ -31,7 +31,7 @@ local function disable_channel( receiver )
_config.disabled_channels = {}
end
_config.disabled_channels[receiver] = false
_config.disabled_channels[receiver] = true
save_config()
return "Channel disabled"