mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-20 09:04:36 +01:00
Removed the checkCapabilities keyword argument because it wasn't used anywhere in our source code.
This commit is contained in:
parent
99d723802e
commit
e97f111042
@ -1045,12 +1045,6 @@ class Commands(object):
|
|||||||
return commands
|
return commands
|
||||||
|
|
||||||
def callCommand(self, name, irc, msg, *L, **kwargs):
|
def callCommand(self, name, irc, msg, *L, **kwargs):
|
||||||
checkCapabilities = kwargs.pop('checkCapabilities', True)
|
|
||||||
if checkCapabilities:
|
|
||||||
cap = checkCommandCapability(msg, self, name)
|
|
||||||
if cap:
|
|
||||||
irc.errorNoCapability(cap)
|
|
||||||
return
|
|
||||||
method = self.getCommandMethod(name)
|
method = self.getCommandMethod(name)
|
||||||
assert L, 'Odd, nothing in L. This can\'t happen.'
|
assert L, 'Odd, nothing in L. This can\'t happen.'
|
||||||
self.log.info('%s.%s called by %s.', self.name(), name, msg.prefix)
|
self.log.info('%s.%s called by %s.', self.name(), name, msg.prefix)
|
||||||
|
Loading…
Reference in New Issue
Block a user