The setattr of the _exec function wasn't right.

This commit is contained in:
Jeremy Fincher 2003-09-04 21:46:16 +00:00
parent dd27e3ae23
commit bef838bf42

View File

@ -53,7 +53,7 @@ class OwnerCommands(privmsgs.CapabilityCheckingPrivmsg):
capability = 'owner' capability = 'owner'
def __init__(self): def __init__(self):
callbacks.Privmsg.__init__(self) callbacks.Privmsg.__init__(self)
setattr(self.__class__, 'exec', self._exec) setattr(self.__class__, 'exec', self.__class__._exec)
def eval(self, irc, msg, args): def eval(self, irc, msg, args):
"""<expression> """<expression>