mirror of
				https://github.com/jlu5/PyLink.git
				synced 2025-11-04 00:47:21 +01:00 
			
		
		
		
	handlers: pick the highest prefix when displaying status in WHOIS
This fixes a regression from aa44bc15a37ef690eb1cc47d5f8d315116b919a0
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.
 | 
			
		||||
                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]
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user