lstrip('@')

master
Aevann 2023-09-27 00:40:12 +03:00
parent 324d1f5cd0
commit 3d110dd568
1 changed files with 1 additions and 1 deletions

View File

@ -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: