mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 06:49:24 +01:00
Fixed multiple logging of repr'ed msg.
This commit is contained in:
parent
048db92e65
commit
385d803ec7
@ -505,8 +505,8 @@ class Irc(IrcCommandDispatcher):
|
||||
self.outstandingPing = True
|
||||
self.queueMsg(ircmsgs.ping(now))
|
||||
if msg:
|
||||
for callback in reviter(self.callbacks):
|
||||
log.debug(repr(msg))
|
||||
for callback in reviter(self.callbacks):
|
||||
try:
|
||||
outFilter = getattr(callback, 'outFilter')
|
||||
except AttributeError, e:
|
||||
@ -649,10 +649,12 @@ class Irc(IrcCommandDispatcher):
|
||||
def die(self):
|
||||
"""Makes the Irc object die. Dead."""
|
||||
log.info('Irc object for %s dying.' % self.server)
|
||||
if self in world.ircs:
|
||||
for callback in self.callbacks:
|
||||
callback.die()
|
||||
if self in world.ircs:
|
||||
world.ircs.remove(self)
|
||||
else:
|
||||
log.warning('Irc object killed twice.')
|
||||
|
||||
def __hash__(self):
|
||||
return id(self)
|
||||
|
Loading…
Reference in New Issue
Block a user