removed is_disabled on msg_vaild. Fix
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user