Actually use the sorted mode list in print_activity

This commit is contained in:
jesopo 2018-10-04 04:46:32 +01:00
parent 934ee7bf8e
commit 17caaa08dd

View file

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