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) self.log.info('%s called by %q.', formatCommand(command), msg.prefix)
# XXX I'm being extra-special-careful here, but we need to refactor # XXX I'm being extra-special-careful here, but we need to refactor
# this. # this.
try:
for name in command: for name in command:
cap = checkCommandCapability(msg, self, name) cap = checkCommandCapability(msg, self, name)
if cap: if cap:
irc.errorNoCapability(cap) irc.errorNoCapability(cap)
return return
try:
try: try:
self.callingCommand = command self.callingCommand = command
self.callCommand(command, irc, msg, *args, **kwargs) self.callCommand(command, irc, msg, *args, **kwargs)