mirror of
				https://github.com/Mikaela/Limnoria.git
				synced 2025-10-31 07:37:22 +01:00 
			
		
		
		
	Fediverse: run Black.
This commit is contained in:
		
							parent
							
								
									e9ff57a1c9
								
							
						
					
					
						commit
						d5e241cb0c
					
				| @ -51,9 +51,17 @@ def configure(advanced): | ||||
| 
 | ||||
| 
 | ||||
| Fediverse = conf.registerPlugin("Fediverse") | ||||
| conf.registerChannelValue(Fediverse, 'usernameSnarfer', | ||||
|     registry.Boolean(False, _("""Determines whether the bot will output the | ||||
|     profile of @username@hostname accounts it sees in channel messages."""))) | ||||
| conf.registerChannelValue( | ||||
|     Fediverse, | ||||
|     "usernameSnarfer", | ||||
|     registry.Boolean( | ||||
|         False, | ||||
|         _( | ||||
|             """Determines whether the bot will output the | ||||
|     profile of @username@hostname accounts it sees in channel messages.""" | ||||
|         ), | ||||
|     ), | ||||
| ) | ||||
| 
 | ||||
| 
 | ||||
| # vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79: | ||||
|  | ||||
| @ -117,7 +117,7 @@ class Fediverse(callbacks.PluginRegexp): | ||||
|     """Fetches information from ActivityPub servers.""" | ||||
| 
 | ||||
|     threaded = True | ||||
|     regexps = ['usernameSnarfer'] | ||||
|     regexps = ["usernameSnarfer"] | ||||
| 
 | ||||
|     def __init__(self, irc): | ||||
|         super().__init__(irc) | ||||
| @ -201,6 +201,7 @@ class Fediverse(callbacks.PluginRegexp): | ||||
|                 utils.web.htmlToText(actor["summary"]), | ||||
|             ) | ||||
|         ) | ||||
| 
 | ||||
|     usernameSnarfer.__doc__ = _username_regexp.pattern | ||||
| 
 | ||||
|     @wrap(["somethingWithoutSpaces"]) | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Valentin Lorentz
						Valentin Lorentz