mirror of
				https://github.com/jlu5/PyLink.git
				synced 2025-11-04 08:57:25 +01:00 
			
		
		
		
	relay: less ambiguous error if a relay channel doesn't exist on the caller network
(cherry picked from commit 0b0efbaf9f49757c58aa9ec6a060f966e15e7677)
This commit is contained in:
		
							parent
							
								
									4577bde05c
								
							
						
					
					
						commit
						46b18512cf
					
				@ -2016,7 +2016,8 @@ def claim(irc, source, args):
 | 
			
		||||
    relay = (irc.name, channel)
 | 
			
		||||
    with db_lock:
 | 
			
		||||
        if relay not in db:
 | 
			
		||||
            irc.error('No such relay %r exists.' % channel)
 | 
			
		||||
            irc.error('No relay %r exists on this network (this command must be run on the '
 | 
			
		||||
                      'network this channel was created on).' % channel)
 | 
			
		||||
            return
 | 
			
		||||
        claimed = db[relay]["claim"]
 | 
			
		||||
        try:
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user