fix last return statement being unreachable

This commit is contained in:
lyx0 2021-10-22 22:29:31 +02:00
parent 6edccd2b24
commit 8901038416

View file

@ -73,7 +73,7 @@ func CheckMessage(text string) (bool, string) {
// Bad message
if responseObject.Banned {
return true, fmt.Sprintf("Banphrased, reason: %s", reason)
} else {
} else if !responseObject.Banned {
// Good message
return false, "okay"
}