From 17caaa08dd92ec308ea72a4ac012585ad36a7b86 Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 4 Oct 2018 04:46:32 +0100 Subject: [PATCH] Actually use the sorted mode list in print_activity --- modules/print_activity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/print_activity.py b/modules/print_activity.py index cedb630d..aaa8fc7d 100644 --- a/modules/print_activity.py +++ b/modules/print_activity.py @@ -14,7 +14,7 @@ class Module(ModuleManager.BaseModule): symbols = [] modes = list(channel.get_user_status(user)) modes.sort(key=lambda x: list(server.prefix_modes.keys()).index(x)) - for mode in channel.get_user_status(user): + for mode in modes: symbols.append(server.prefix_modes[mode]) return "".join(symbols)