From 78f03078d83bb6a116a0949ba7c8c2cbdacbf991 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Fri, 13 Oct 2006 05:59:39 +0000 Subject: [PATCH] Handle flusher correctly. --- plugins/ChannelLogger/plugin.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/plugins/ChannelLogger/plugin.py b/plugins/ChannelLogger/plugin.py index 9604a03be..6ee7ede53 100644 --- a/plugins/ChannelLogger/plugin.py +++ b/plugins/ChannelLogger/plugin.py @@ -55,14 +55,13 @@ class ChannelLogger(callbacks.Plugin): self.lastMsgs = {} self.lastStates = {} self.logs = {} - world.flushers.append(self.flush) + self.flusher = self.flush + world.flushers.append(self.flusher) def die(self): for log in self._logs(): log.close() - world.flushers = [x for x in world.flushers - if hasattr(x, 'im_class') and - x.im_class is not self.__class__] + world.flushers = [x for x in world.flushers if x is not self.flusher] def __call__(self, irc, msg): try: