Remove unneeded special case for config check
This commit is contained in:
		
							parent
							
								
									a0b03ac870
								
							
						
					
					
						commit
						f72a68acd9
					
				
					 1 changed files with 0 additions and 2 deletions
				
			
		|  | @ -866,8 +866,6 @@ void check_idle() | ||||||
| 
 | 
 | ||||||
|     /* Only check user if he is mentioned in the config */ |     /* Only check user if he is mentioned in the config */ | ||||||
| 
 | 
 | ||||||
|     if (!config[0]) |  | ||||||
|         return;                 /* no entries in config */ |  | ||||||
|     while (config[++aktconfigline] && aktconfigline >= 0) |     while (config[++aktconfigline] && aktconfigline >= 0) | ||||||
|         if (chkmatch(user, config[aktconfigline]->users)) { |         if (chkmatch(user, config[aktconfigline]->users)) { | ||||||
|             aktconfigline = -2; /* we found user in config, so he/they has/have restrictions */ |             aktconfigline = -2; /* we found user in config, so he/they has/have restrictions */ | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Petar Kapris
						Petar Kapris