mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 04:32:36 +01:00
src/irclib: If the post-inFilter message differs from the pre-inFilter message, log it for debugging purposes.
This commit is contained in:
parent
fa5ad68958
commit
a3149f0ec0
@ -767,7 +767,8 @@ class Irc(IrcCommandDispatcher):
|
|||||||
channel = msg.args[0]
|
channel = msg.args[0]
|
||||||
else:
|
else:
|
||||||
channel = None
|
channel = None
|
||||||
log.debug('Incoming message: %s', str(msg).rstrip('\r\n'))
|
preInFilter = str(msg).rstrip('\r\n')
|
||||||
|
log.debug('Incoming message: %s', preInFilter)
|
||||||
|
|
||||||
# Yeah, so this is odd. Some networks (oftc) seem to give us certain
|
# Yeah, so this is odd. Some networks (oftc) seem to give us certain
|
||||||
# messages with our nick instead of our prefix. We'll fix that here.
|
# messages with our nick instead of our prefix. We'll fix that here.
|
||||||
@ -812,6 +813,9 @@ class Irc(IrcCommandDispatcher):
|
|||||||
except:
|
except:
|
||||||
log.exception('Uncaught exception in inFilter:')
|
log.exception('Uncaught exception in inFilter:')
|
||||||
world.debugFlush()
|
world.debugFlush()
|
||||||
|
postInFilter = str(msg).rstrip('\r\n')
|
||||||
|
if postInFilter != preInFilter:
|
||||||
|
log.debug('Incoming message (post-inFilter): %s', postInFilter)
|
||||||
for callback in self.callbacks:
|
for callback in self.callbacks:
|
||||||
try:
|
try:
|
||||||
if callback is not None:
|
if callback is not None:
|
||||||
|
Loading…
Reference in New Issue
Block a user