mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
callbacks: Update PluginRegexp docstring to reference (un)addressedRegexps
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
This commit is contained in:
parent
f2df22ef1a
commit
84ca6f2ae3
@ -1309,8 +1309,10 @@ Privmsg = Plugin # Backwards compatibility.
|
|||||||
|
|
||||||
class PluginRegexp(Plugin):
|
class PluginRegexp(Plugin):
|
||||||
"""Same as Plugin, except allows the user to also include regexp-based
|
"""Same as Plugin, except allows the user to also include regexp-based
|
||||||
callbacks. All regexp-based callbacks must be specified in a set (or
|
callbacks. All regexp-based callbacks must be specified in the set (or
|
||||||
list) attribute "regexps".
|
list) attribute "regexps", "addressedRegexps", or "unaddressedRegexps"
|
||||||
|
depending on whether they should always be triggered, triggered only when
|
||||||
|
the bot is addressed, or triggered only when the bot isn't addressed.
|
||||||
"""
|
"""
|
||||||
flags = re.I
|
flags = re.I
|
||||||
# 'regexps' methods are called whether the message is addressed or not.
|
# 'regexps' methods are called whether the message is addressed or not.
|
||||||
|
Loading…
Reference in New Issue
Block a user