mirror of
				https://github.com/jlu5/PyLink.git
				synced 2025-11-04 00:47:21 +01:00 
			
		
		
		
	opercmds: forbid killing the main PyLink client
This commit is contained in:
		
							parent
							
								
									b9f782868c
								
							
						
					
					
						commit
						73261a31bd
					
				@ -386,6 +386,9 @@ def kill(irc, source, args):
 | 
			
		||||
        # Whatever we were told to kick doesn't exist!
 | 
			
		||||
        irc.error("No such nick %r." % target)
 | 
			
		||||
        return
 | 
			
		||||
    elif irc.pseudoclient.uid == targetu:
 | 
			
		||||
        irc.error("Cannot kill the main PyLink client!")
 | 
			
		||||
        return
 | 
			
		||||
 | 
			
		||||
    irc.kill(sender, targetu, reason)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user