mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
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
Block a user