Put the monkey patch in the wrong place.

This commit is contained in:
Jeremy Fincher 2005-02-18 23:53:11 +00:00
parent c9408a95f5
commit 5985562a31

View File

@ -1041,12 +1041,12 @@ class Commands(object):
self.log.info('%s called by %q.', formatCommand(command), msg.prefix)
# XXX I'm being extra-special-careful here, but we need to refactor
# this.
for name in command:
cap = checkCommandCapability(msg, self, name)
if cap:
irc.errorNoCapability(cap)
return
try:
for name in command:
cap = checkCommandCapability(msg, self, name)
if cap:
irc.errorNoCapability(cap)
return
try:
self.callingCommand = command
self.callCommand(command, irc, msg, *args, **kwargs)