mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 19:22:45 +01:00
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:
parent
9971e991fe
commit
71830d0c84
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user