Entferne "Channels"-Plugin, Bot kann jetzt nicht mehr in einzelnen Channels deaktiviert werden

This commit is contained in:
Andreas Bielawski
2016-09-21 20:35:22 +02:00
parent 2078028ae0
commit c7fde261f5
2 changed files with 0 additions and 19 deletions

View File

@ -983,18 +983,6 @@ function table.contains(table, element)
return false
end
-- Checks if bot was disabled on specific chat
function is_channel_disabled(msg)
local hash = 'chat:'..msg.chat.id..':disabled'
local disabled = redis:get(hash)
if not disabled or disabled == "false" then
return false
end
return disabled
end
-- Converts a gross string back into proper UTF-8.
-- Useful for fixing improper encoding caused by bad JSON escaping.
function utilities.fix_utf8(str)