mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-27 21:19:31 +01:00
handlers: pick the highest prefix when displaying status in WHOIS
This fixes a regression from aa44bc15a3
This commit is contained in:
parent
9dfa0a478e
commit
8490bee634
@ -50,7 +50,7 @@ def handle_whois(irc, source, command, args):
|
|||||||
# Show the highest prefix mode like a regular IRCd does, if there are any.
|
# Show the highest prefix mode like a regular IRCd does, if there are any.
|
||||||
prefixes = c.get_prefix_modes(target)
|
prefixes = c.get_prefix_modes(target)
|
||||||
if prefixes:
|
if prefixes:
|
||||||
highest = prefixes[-1]
|
highest = prefixes[0]
|
||||||
|
|
||||||
# Fetch the prefix mode letter from the named mode.
|
# Fetch the prefix mode letter from the named mode.
|
||||||
modechar = irc.cmodes[highest]
|
modechar = irc.cmodes[highest]
|
||||||
|
Loading…
Reference in New Issue
Block a user