mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-02 17:29:22 +01:00
Added docstring for CapabilityCheckingPrivmsg
This commit is contained in:
parent
2484ce94be
commit
5bc445fd5d
@ -96,6 +96,9 @@ def thread(f):
|
|||||||
return newf
|
return newf
|
||||||
|
|
||||||
class CapabilityCheckingPrivmsg(callbacks.Privmsg):
|
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
|
capability = '' # To satisfy PyChecker
|
||||||
def callCommand(self, f, irc, msg, args):
|
def callCommand(self, f, irc, msg, args):
|
||||||
if ircdb.checkCapability(msg.prefix, self.capability):
|
if ircdb.checkCapability(msg.prefix, self.capability):
|
||||||
|
Loading…
Reference in New Issue
Block a user