mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 19:22:45 +01:00
Switch comments of callbacks.PluginRegexp's attributes to docstrings (for Sphinx).
This commit is contained in:
parent
a5e06e1b57
commit
e1f9d68870
@ -1411,15 +1411,15 @@ class PluginRegexp(Plugin):
|
||||
the bot is addressed, or triggered only when the bot isn't addressed.
|
||||
"""
|
||||
flags = re.I
|
||||
# 'regexps' methods are called whether the message is addressed or not.
|
||||
regexps = ()
|
||||
# 'addressedRegexps' methods are called only when the message is addressed,
|
||||
# and then, only with the payload (i.e., what is returned from the
|
||||
# 'addressed' function.
|
||||
"""'regexps' methods are called whether the message is addressed or not."""
|
||||
addressedRegexps = ()
|
||||
# 'unaddressedRegexps' methods are called only when the message is *not*
|
||||
# addressed.
|
||||
"""'addressedRegexps' methods are called only when the message is addressed,
|
||||
and then, only with the payload (i.e., what is returned from the
|
||||
'addressed' function."""
|
||||
unaddressedRegexps = ()
|
||||
"""'unaddressedRegexps' methods are called only when the message is *not*
|
||||
addressed."""
|
||||
Proxy = SimpleProxy
|
||||
def __init__(self, irc):
|
||||
self.__parent = super(PluginRegexp, self)
|
||||
|
Loading…
Reference in New Issue
Block a user