mirror of
				https://github.com/jlu5/PyLink.git
				synced 2025-11-04 00:47:21 +01:00 
			
		
		
		
	ServiceBot: verify that the service name is a valid nick
This commit is contained in:
		
							parent
							
								
									d31d09ce7e
								
							
						
					
					
						commit
						d33eb22ca3
					
				
							
								
								
									
										3
									
								
								utils.py
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								utils.py
									
									
									
									
									
								
							@ -186,6 +186,9 @@ class ServiceBot():
 | 
			
		||||
        # Service name
 | 
			
		||||
        self.name = name
 | 
			
		||||
 | 
			
		||||
        # TODO: validate nick, ident, etc. on runtime as well
 | 
			
		||||
        assert isNick(name), "Invalid service name %r" % name
 | 
			
		||||
 | 
			
		||||
        # Nick/ident to take. Defaults to the same as the service name if not given.
 | 
			
		||||
        self.nick = nick
 | 
			
		||||
        self.ident = ident
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user