Archived
1

Fix return check of ProtectChat function

This commit is contained in:
Vladimir Hodakov 2018-03-31 17:46:13 +04:00
parent e12cada4c4
commit 3ffeec4e54

View File

@ -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
} }