diff options
| author | 2018-10-03 17:11:01 +0100 | |
|---|---|---|
| committer | 2018-10-03 17:11:01 +0100 | |
| commit | 75f8f4d955067b542537ba9d345159c5a24d4f9a (patch) | |
| tree | ffb8a8b44447275c247f2d260cfd16690685e8e7 /modules | |
| parent | Fix showing usage when a user doesn't provide enough args to a command (diff) | |
| signature | ||
Fix order of user status symbols in modules/print_activity.py
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/print_activity.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/print_activity.py b/modules/print_activity.py index 9fc2d621..cedb630d 100644 --- a/modules/print_activity.py +++ b/modules/print_activity.py @@ -12,6 +12,8 @@ class Module(ModuleManager.BaseModule): def _mode_symbols(self, user, channel, server): modes = channel.get_user_status(user) 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): symbols.append(server.prefix_modes[mode]) return "".join(symbols) |
