mirror of
				https://github.com/jlu5/PyLink.git
				synced 2025-11-04 08:57:25 +01:00 
			
		
		
		
	relay: remove unused relay() function; what was that about?
This commit is contained in:
		
							parent
							
								
									5999eedd98
								
							
						
					
					
						commit
						3a9df57c39
					
				@ -469,17 +469,6 @@ def removeChannel(irc, channel):
 | 
			
		||||
                if not utils.isInternalClient(remoteirc, user):
 | 
			
		||||
                    relayPart(remoteirc, remotechan, user)
 | 
			
		||||
 | 
			
		||||
def relay(homeirc, func, args):
 | 
			
		||||
    """<source IRC network object> <function name> <args>
 | 
			
		||||
 | 
			
		||||
    Relays a call to <function name>(<args>) to every IRC object's protocol
 | 
			
		||||
    module except the source IRC network's."""
 | 
			
		||||
    for name, irc in utils.networkobjects.items():
 | 
			
		||||
        if name == homeirc.name:
 | 
			
		||||
            continue
 | 
			
		||||
        f = getattr(irc.proto, func)
 | 
			
		||||
        f(*args)
 | 
			
		||||
 | 
			
		||||
@utils.add_cmd
 | 
			
		||||
def create(irc, source, args):
 | 
			
		||||
    """<channel>
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user