From f797046327aa1b03a6b404efad4998858518470b Mon Sep 17 00:00:00 2001 From: Pierce Date: Mon, 29 May 2023 22:27:21 -0400 Subject: [PATCH] Make python side of Hourai recognize admins as mods The rust side of Hourai recognizes anyone with a role that begins with "mod" or "admin" to be a moderator. The python side was never updated to recognize the "admin" prefix. This commit fixes this. --- base/hourai/utils/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/hourai/utils/__init__.py b/base/hourai/utils/__init__.py index 4cef0dc0..ab6a8e00 100644 --- a/base/hourai/utils/__init__.py +++ b/base/hourai/utils/__init__.py @@ -12,7 +12,7 @@ from datetime import timedelta -MODERATOR_PREFIX = 'mod' +MODERATOR_PREFIX = ('mod', 'admin') DELETED_USER_REGEX = re.compile(r'Deleted User [0-9a-fA-F]{8}')