3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-27 13:09:23 +01:00

handlers: pick the highest prefix when displaying status in WHOIS

This fixes a regression from aa44bc15a3
This commit is contained in:
James Lu 2017-12-12 12:46:43 -08:00
parent 9dfa0a478e
commit 8490bee634

View File

@ -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.
prefixes = c.get_prefix_modes(target)
if prefixes:
highest = prefixes[-1]
highest = prefixes[0]
# Fetch the prefix mode letter from the named mode.
modechar = irc.cmodes[highest]