From 3d110dd568a6158a43551a1b50fcbf9796a3fd48 Mon Sep 17 00:00:00 2001 From: Aevann Date: Wed, 27 Sep 2023 00:40:12 +0300 Subject: [PATCH] lstrip('@') --- files/helpers/get.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/helpers/get.py b/files/helpers/get.py index eacf5cc2a..5294c6d65 100644 --- a/files/helpers/get.py +++ b/files/helpers/get.py @@ -9,7 +9,7 @@ from files.__main__ import cache def sanitize_username(username): if not username: return username - return username.replace('\\', '').replace('_', '\_').replace('%', '').replace('(', '').replace(')', '').strip() + return username.lstrip('@').replace('\\', '').replace('_', '\_').replace('%', '').replace('(', '').replace(')', '').strip() def get_user(username, v=None, graceful=False, include_blocks=False, attributes=None): if not username: