Fix return check of ProtectChat function
This commit is contained in:
parent
e12cada4c4
commit
3ffeec4e54
@ -21,7 +21,7 @@ func (r *Router) routeGroupRequest(update tgbotapi.Update, playerRaw *dbmapping.
|
|||||||
var piMsg = regexp.MustCompile("(П|п)(И|и)(З|з)(Д|д)")
|
var piMsg = regexp.MustCompile("(П|п)(И|и)(З|з)(Д|д)")
|
||||||
|
|
||||||
restrictionStatus := c.Chatter.ProtectChat(&update, playerRaw, chatRaw)
|
restrictionStatus := c.Chatter.ProtectChat(&update, playerRaw, chatRaw)
|
||||||
if restrictionStatus != "protection_passed" {
|
if restrictionStatus != "ok" {
|
||||||
return restrictionStatus
|
return restrictionStatus
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user