Separate per-user and per-room flood limits

This commit is contained in:
Tulir Asokan 2019-06-23 14:20:25 +03:00
parent 85a7967888
commit b26f9cf6eb
3 changed files with 28 additions and 10 deletions

View file

@ -37,8 +37,10 @@ class Config(BaseProxyConfig):
helper.copy("rules")
helper.copy("templates")
helper.copy("default_flags")
helper.copy("antispam.max")
helper.copy("antispam.delay")
helper.copy("antispam.user.max")
helper.copy("antispam.user.delay")
helper.copy("antispam.room.max")
helper.copy("antispam.room.delay")
def parse_data(self) -> None:
self.default_flags = re.RegexFlag(0)