mirror of
				https://github.com/Mikaela/Limnoria.git
				synced 2025-10-31 07:37:22 +01:00 
			
		
		
		
	utils.str.format: Replace %u with '' instead of '<>' if URL is empty.
This commit is contained in:
		
							parent
							
								
									3a5c4c3ddd
								
							
						
					
					
						commit
						8d7b06efd1
					
				| @ -511,7 +511,11 @@ def format(s, *args, **kwargs): | ||||
|             return timeElapsed(args.pop()) | ||||
|         elif char == 'u': | ||||
|             import supybot.conf as conf | ||||
|             return conf.supybot.reply.format.url() % args.pop() | ||||
|             url = args.pop() | ||||
|             if url: | ||||
|                 return conf.supybot.reply.format.url() % url | ||||
|             else: | ||||
|                 return '' | ||||
|         elif char == 'v': | ||||
|             args.pop() | ||||
|             return '' | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Valentin Lorentz
						Valentin Lorentz