mirror of
				https://github.com/jlu5/PyLink.git
				synced 2025-11-04 00:47:21 +01:00 
			
		
		
		
	nefarious: set umode +x when changing hosts of service clients
This commit is contained in:
		
							parent
							
								
									89ed92b46a
								
							
						
					
					
						commit
						841d58d82e
					
				@ -623,7 +623,14 @@ class P10Protocol(Protocol):
 | 
			
		||||
 | 
			
		||||
        if field == 'HOST':
 | 
			
		||||
            self._send(self.irc.sid, 'FA %s %s' % (target, text))
 | 
			
		||||
            # Save the host change as a user mode (this is what P10 does),
 | 
			
		||||
 | 
			
		||||
            # If this is an internal client, propagate a umode +x change to the target.
 | 
			
		||||
            # External clients will have to turn umode +x on themselves, as I don't believe
 | 
			
		||||
            # we can force modes on remote users.
 | 
			
		||||
            if self.irc.isInternalClient(target):
 | 
			
		||||
                self.mode(self.irc.sid, target, [('+x', None)])
 | 
			
		||||
 | 
			
		||||
            # Save the host change as a user mode (this is what P10 does on bursts),
 | 
			
		||||
            # so further host checks work.
 | 
			
		||||
            self.irc.applyModes(target, [('+f', text)])
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user