mirror of
				https://github.com/Mikaela/Limnoria.git
				synced 2025-10-31 07:37:22 +01:00 
			
		
		
		
	Better error messages in addAlias.
This commit is contained in:
		
							parent
							
								
									4cb7c18392
								
							
						
					
					
						commit
						5c1ecc2248
					
				| @ -200,9 +200,9 @@ class Alias(callbacks.Privmsg): | ||||
|         name = realName | ||||
|         cb = callbacks.findCallbackForCommand(irc, name) | ||||
|         if cb is not None and cb != self: | ||||
|             raise AliasError, 'A command with that name already exists.' | ||||
|             raise AliasError, 'A command with the name %r already exists.'%name | ||||
|         if name in self.frozen: | ||||
|             raise AliasError, 'That alias is frozen.' | ||||
|             raise AliasError, 'Alias %r is frozen.' % name | ||||
|         try: | ||||
|             f = makeNewAlias(name, alias) | ||||
|         except RecursiveAlias: | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Jeremy Fincher
						Jeremy Fincher