Fix order of user status symbols in modules/print_activity.py

This commit is contained in:
jesopo 2018-10-03 17:11:01 +01:00
parent 09b6f52d8e
commit 75f8f4d955

View file

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