From d48f96f219e06739ee2ec442d6c08dc6a0d5c3ad Mon Sep 17 00:00:00 2001 From: miruka Date: Fri, 4 Sep 2020 19:55:14 -0400 Subject: [PATCH] Describe power levels <0 as "muted" in event text --- src/backend/nio_callbacks.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/backend/nio_callbacks.py b/src/backend/nio_callbacks.py index b1f22070..d0b5971b 100644 --- a/src/backend/nio_callbacks.py +++ b/src/backend/nio_callbacks.py @@ -365,9 +365,10 @@ class NioCallbacks: def lvl(level: int) -> str: return ( - f"Admin ({level})" if level == 100 else + f"Admin ({level})" if level == 100 else f"Moderator ({level})" if level >= 50 else - f"User ({level})" + f"User ({level})" if level >= 0 else + f"Muted ({level})" ) def format_defaults_dict(