Fix order of user status symbols in modules/print_activity.py
This commit is contained in:
parent
09b6f52d8e
commit
75f8f4d955
1 changed files with 2 additions and 0 deletions
|
@ -12,6 +12,8 @@ class Module(ModuleManager.BaseModule):
|
||||||
def _mode_symbols(self, user, channel, server):
|
def _mode_symbols(self, user, channel, server):
|
||||||
modes = channel.get_user_status(user)
|
modes = channel.get_user_status(user)
|
||||||
symbols = []
|
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 channel.get_user_status(user):
|
||||||
symbols.append(server.prefix_modes[mode])
|
symbols.append(server.prefix_modes[mode])
|
||||||
return "".join(symbols)
|
return "".join(symbols)
|
||||||
|
|
Loading…
Reference in a new issue