hdkv
/
i2_bot
Archived
1
Fork 0

Fix return check of ProtectChat function

master
Vladimir Hodakov 2018-03-31 17:46:13 +04:00
parent e12cada4c4
commit 3ffeec4e54
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ func (r *Router) routeGroupRequest(update tgbotapi.Update, playerRaw *dbmapping.
var piMsg = regexp.MustCompile("(П|п)(И|и)(З|з)(Д|д)")
restrictionStatus := c.Chatter.ProtectChat(&update, playerRaw, chatRaw)
if restrictionStatus != "protection_passed" {
if restrictionStatus != "ok" {
return restrictionStatus
}