From 6cd26b906890ac21b648f700ab0faf38cc06f569 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sat, 6 Apr 2024 07:20:06 +0200 Subject: [PATCH] fix janny messages turning into lower case --- files/routes/chat.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/files/routes/chat.py b/files/routes/chat.py index 97d2746b5..d54614c04 100644 --- a/files/routes/chat.py +++ b/files/routes/chat.py @@ -99,13 +99,12 @@ def speak(data, v): del muted[vname] refresh_online(f'{SITE_FULL}/chat/1') if v.admin_level >= PERMS['USER_BAN']: - text = text.lower() - for i in mute_regex.finditer(text): + for i in mute_regex.finditer(text.lower()): username = i.group(1).lower() muted_until = int(int(i.group(2)) * 60 + time.time()) muted[username] = muted_until refresh_online(f'{SITE_FULL}/chat/1') - for i in unmute_regex.finditer(text): + for i in unmute_regex.finditer(text.lower()): username = i.group(1).lower() muted.pop(username, None) refresh_online(f'{SITE_FULL}/chat/1')