mirror of
				https://github.com/jlu5/PyLink.git
				synced 2025-11-04 00:47:21 +01:00 
			
		
		
		
	bots: remove use of deprecated utils.isNick()
This commit is contained in:
		
							parent
							
								
									15a231a371
								
							
						
					
					
						commit
						48ea58c1fb
					
				@ -134,7 +134,7 @@ def nick(irc, source, args):
 | 
			
		||||
    if newnick in ('0', u):  # Allow /nick 0 to work
 | 
			
		||||
        newnick = u
 | 
			
		||||
 | 
			
		||||
    elif not utils.isNick(newnick):
 | 
			
		||||
    elif not irc.is_nick(newnick):
 | 
			
		||||
        irc.error('Invalid nickname %r.' % newnick)
 | 
			
		||||
        return
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user