Added docstring for CapabilityCheckingPrivmsg

This commit is contained in:
Jeremy Fincher 2003-09-06 00:37:28 +00:00
parent 2484ce94be
commit 5bc445fd5d
1 changed files with 3 additions and 0 deletions

View File

@ -96,6 +96,9 @@ def thread(f):
return newf
class CapabilityCheckingPrivmsg(callbacks.Privmsg):
"""A small subclass of callbacks.Privmsg that checks self.capability
before allowing any command to be called.
"""
capability = '' # To satisfy PyChecker
def callCommand(self, f, irc, msg, args):
if ircdb.checkCapability(msg.prefix, self.capability):