Because super sucks, we need to assign to self.log before calling our parents' __init__s, because mixins might be before our parents. Ridiculous. Don't be surprised if we go on a super-excising rampage in the future.

This commit is contained in:
Jeremy Fincher 2005-03-24 16:27:41 +00:00
parent 9971e991fe
commit 71830d0c84

View File

@ -1114,10 +1114,10 @@ class PluginMixin(BasePlugin, irclib.IrcCallback):
classModule = None
Proxy = IrcObjectProxy
def __init__(self, irc):
self.__parent = super(PluginMixin, self)
self.__parent.__init__(irc)
myName = self.name()
self.log = log.getPluginLogger(myName)
self.__parent = super(PluginMixin, self)
self.__parent.__init__(irc)
# We can't do this because of the specialness that Owner and Misc do.
# I guess plugin authors will have to get the capitalization right.
# self.callAfter = map(str.lower, self.callAfter)