Only show highest channel access symbol in format_activity.py
This commit is contained in:
parent
afc287f020
commit
ab4289aceb
1 changed files with 4 additions and 6 deletions
|
@ -9,13 +9,11 @@ class Module(ModuleManager.BaseModule):
|
||||||
minimal=minimal, **kwargs)
|
minimal=minimal, **kwargs)
|
||||||
|
|
||||||
def _mode_symbols(self, user, channel, server):
|
def _mode_symbols(self, user, channel, server):
|
||||||
modes = channel.get_user_status(user)
|
|
||||||
symbols = []
|
|
||||||
modes = list(channel.get_user_status(user))
|
modes = list(channel.get_user_status(user))
|
||||||
modes.sort(key=lambda x: list(server.prefix_modes.keys()).index(x))
|
if modes:
|
||||||
for mode in modes:
|
modes.sort(key=lambda x: list(server.prefix_modes.keys()).index(x))
|
||||||
symbols.append(server.prefix_modes[mode])
|
return server.prefix_modes[modes[0]]
|
||||||
return "".join(symbols)
|
return ""
|
||||||
|
|
||||||
def _privmsg(self, event, channel, user, nickname):
|
def _privmsg(self, event, channel, user, nickname):
|
||||||
symbols = ""
|
symbols = ""
|
||||||
|
|
Loading…
Reference in a new issue