mirror of
				https://github.com/Mikaela/Limnoria.git
				synced 2025-11-04 01:27:21 +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]
 | 
			
		||||
        else:
 | 
			
		||||
            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
 | 
			
		||||
        # messages with our nick instead of our prefix.  We'll fix that here.
 | 
			
		||||
@ -812,6 +813,9 @@ class Irc(IrcCommandDispatcher):
 | 
			
		||||
            except:
 | 
			
		||||
                log.exception('Uncaught exception in inFilter:')
 | 
			
		||||
            world.debugFlush()
 | 
			
		||||
        postInFilter = str(msg).rstrip('\r\n')
 | 
			
		||||
        if postInFilter != preInFilter:
 | 
			
		||||
            log.debug('Incoming message (post-inFilter): %s', postInFilter)
 | 
			
		||||
        for callback in self.callbacks:
 | 
			
		||||
            try:
 | 
			
		||||
                if callback is not None:
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user