mirror of https://github.com/Mikaela/Limnoria.git
Added docstring for CapabilityCheckingPrivmsg
This commit is contained in:
parent
2484ce94be
commit
5bc445fd5d
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue