callbacks: Update PluginRegexp docstring to reference (un)addressedRegexps

Signed-off-by: James Vega <jamessan@users.sourceforge.net>
This commit is contained in:
James Vega 2009-04-09 10:53:02 -04:00
parent f2df22ef1a
commit 84ca6f2ae3

View File

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