mirror of
				https://gitlab.com/gpvkt/twitchtts.git
				synced 2025-11-04 11:07:34 +01:00 
			
		
		
		
	Fixed: Error in whitelist handling
This commit is contained in:
		
							parent
							
								
									10fb75e19a
								
							
						
					
					
						commit
						c7a2225eb2
					
				
					 2 changed files with 3 additions and 3 deletions
				
			
		
							
								
								
									
										
											BIN
										
									
								
								tts.exe
									
										
									
									
									
								
							
							
						
						
									
										
											BIN
										
									
								
								tts.exe
									
										
									
									
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										6
									
								
								tts.py
									
										
									
									
									
								
							
							
						
						
									
										6
									
								
								tts.py
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -74,7 +74,7 @@ class IRC:
 | 
			
		|||
        }
 | 
			
		||||
 | 
			
		||||
        if 'WHITELIST_USER' in CONF:
 | 
			
		||||
            self.tts_allowed = CONF['WHITELIST_USER']
 | 
			
		||||
            self.tts['whitelist'] = CONF['WHITELIST_USER']
 | 
			
		||||
 | 
			
		||||
    def connect(self, server, port, channel, botnick, botpass):
 | 
			
		||||
        """ Connect to Twitch IRC servers
 | 
			
		||||
| 
						 | 
				
			
			@ -498,8 +498,8 @@ class IRC:
 | 
			
		|||
        """
 | 
			
		||||
 | 
			
		||||
        if CONF['WHITELIST']:
 | 
			
		||||
            if user not in self.tts_allowed:
 | 
			
		||||
                logging.debug("tts_allowed: %s", self.tts_allowed)
 | 
			
		||||
            if user not in self.tts['whitelist']:
 | 
			
		||||
                logging.debug("tts.whitelist: %s", self.tts['whitelist'])
 | 
			
		||||
                self.sendmsg(
 | 
			
		||||
                    CONF['IRC_CHANNEL'],
 | 
			
		||||
                    "@"+str(user),
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue