Fediverse: run Black.

This commit is contained in:
Valentin Lorentz 2020-05-09 20:55:28 +02:00
parent e9ff57a1c9
commit d5e241cb0c
2 changed files with 13 additions and 4 deletions

View File

@ -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:

View File

@ -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"])