hardcoding is bad
This commit is contained in:
		
							parent
							
								
									412637c1fa
								
							
						
					
					
						commit
						4d07655281
					
				
					 1 changed files with 4 additions and 2 deletions
				
			
		| 
						 | 
					@ -197,7 +197,8 @@ increase_max_hash_size ()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (config_fail)
 | 
						if (config_fail)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		xchat_printf (ph, "Config file is unavailable, defaulting to 4 GB\n");
 | 
							xchat_printf (ph, "Config file is unavailable, falling back to the default value\n");
 | 
				
			||||||
 | 
							print_size ();
 | 
				
			||||||
	} else
 | 
						} else
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		size = get_max_hash_size ();
 | 
							size = get_max_hash_size ();
 | 
				
			||||||
| 
						 | 
					@ -223,7 +224,8 @@ decrease_max_hash_size ()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (config_fail)
 | 
						if (config_fail)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		xchat_printf (ph, "Config file is unavailable, defaulting to 4 GB\n");
 | 
							xchat_printf (ph, "Config file is unavailable, falling back to the default value\n");
 | 
				
			||||||
 | 
							print_size ();
 | 
				
			||||||
	} else
 | 
						} else
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		size = get_max_hash_size ();
 | 
							size = get_max_hash_size ();
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue