chat panic doesn't apply to verified accounts

pull/6889/head
Thibault Duplessis 2020-06-28 21:28:47 +02:00
parent b100926d2b
commit 53afaed7b9
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ final class ChatPanic {
def allowed(u: User, tighter: Boolean): Boolean =
!(enabled || tighter) || {
u.count.gameH > 10 && u.createdSinceDays(1)
u.count.gameH > 10 && u.createdSinceDays(1) && u.isVerified
}
def allowed(u: User): Boolean = allowed(u, false)