mirror of
				https://github.com/Mikaela/Limnoria.git
				synced 2025-10-31 07:37:22 +01:00 
			
		
		
		
	Google: Fix encoding issue.
This commit is contained in:
		
							parent
							
								
									8421300e14
								
							
						
					
					
						commit
						93ecc2424f
					
				| @ -140,12 +140,15 @@ class Google(callbacks.PluginRegexp): | ||||
|                 results.append(format('%s: %u', title, url)) | ||||
|             else: | ||||
|                 results.append(url) | ||||
|         if sys.version_info[0] < 3: | ||||
|             repl = lambda x:x if isinstance(x, unicode) else unicode(x, 'utf8') | ||||
|             results = map(repl, results) | ||||
|         if not results: | ||||
|             return [format(_('No matches found.'))] | ||||
|             return [_('No matches found.')] | ||||
|         elif onetoone: | ||||
|             return results | ||||
|         else: | ||||
|             return [format('; '.join(results))] | ||||
|             return [u'; '.join(results)] | ||||
| 
 | ||||
|     @internationalizeDocstring | ||||
|     def lucky(self, irc, msg, args, opts, text): | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Valentin Lorentz
						Valentin Lorentz