mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-12 21:22:36 +01:00
LogToIrc: Update __init__/die signatures.
This commit is contained in:
parent
6d880c9a6f
commit
f0b4332908
@ -51,11 +51,13 @@ from .handler import _ircHandler
|
|||||||
|
|
||||||
class LogToIrc(callbacks.Privmsg):
|
class LogToIrc(callbacks.Privmsg):
|
||||||
threaded = True
|
threaded = True
|
||||||
def __init__(self):
|
def __init__(self, irc):
|
||||||
callbacks.Privmsg.__init__(self)
|
self.__parent = super(LogToIrc, self)
|
||||||
|
self.__parent.__init__(irc)
|
||||||
log._logger.addHandler(_ircHandler)
|
log._logger.addHandler(_ircHandler)
|
||||||
|
|
||||||
def die(self):
|
def die(self):
|
||||||
|
self.__parent.die()
|
||||||
log._logger.removeHandler(_ircHandler)
|
log._logger.removeHandler(_ircHandler)
|
||||||
|
|
||||||
def do376(self, irc, msg):
|
def do376(self, irc, msg):
|
||||||
|
Loading…
Reference in New Issue
Block a user