mirror of
				https://github.com/jlu5/PyLink.git
				synced 2025-11-04 00:47:21 +01:00 
			
		
		
		
	ts6_common: make old topic retrievable in handle_topic
This commit is contained in:
		
							parent
							
								
									31aa624a94
								
							
						
					
					
						commit
						9c4e0107f3
					
				@ -224,9 +224,11 @@ class TS6BaseProtocol(Protocol):
 | 
			
		||||
        channel = utils.toLower(self.irc, args[0])
 | 
			
		||||
        topic = args[1]
 | 
			
		||||
        ts = int(time.time())
 | 
			
		||||
        oldtopic = self.irc.channels[channel].topic
 | 
			
		||||
        self.irc.channels[channel].topic = topic
 | 
			
		||||
        self.irc.channels[channel].topicset = True
 | 
			
		||||
        return {'channel': channel, 'setter': numeric, 'ts': ts, 'topic': topic}
 | 
			
		||||
        return {'channel': channel, 'setter': numeric, 'ts': ts, 'topic': topic,
 | 
			
		||||
                'oldtopic': oldtopic}
 | 
			
		||||
 | 
			
		||||
    def handle_part(self, source, command, args):
 | 
			
		||||
        """Handles incoming PART commands."""
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user