mirror of
				https://github.com/jlu5/PyLink.git
				synced 2025-11-04 08:57:25 +01:00 
			
		
		
		
	relay_cb: respect allow_clientbot_pms in 'rpm' (#292)
This commit is contained in:
		
							parent
							
								
									7eb5e59842
								
							
						
					
					
						commit
						e85cc684a1
					
				@ -201,6 +201,10 @@ def rpm(irc, source, args):
 | 
			
		||||
    elif not text:
 | 
			
		||||
        irc.reply('Error: No text given.')
 | 
			
		||||
        return
 | 
			
		||||
    elif not conf.conf.get('relay').get('allow_clientbot_pms'):
 | 
			
		||||
        irc.reply('Error: Private messages with users connected via Clientbot have been '
 | 
			
		||||
                  'administratively disabled.')
 | 
			
		||||
        return
 | 
			
		||||
 | 
			
		||||
    uid = irc.nickToUid(target)
 | 
			
		||||
    if not uid:
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user