minor plugin fixes
This commit is contained in:
		
							parent
							
								
									522c6c9f16
								
							
						
					
					
						commit
						f6fd353f76
					
				
					 2 changed files with 6 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -161,7 +161,7 @@ get_max_hash_size ()
 | 
			
		|||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void
 | 
			
		||||
static void
 | 
			
		||||
print_size ()
 | 
			
		||||
{
 | 
			
		||||
	xchat_printf (ph, "File size limit for checksums (in bytes): %llu", get_max_hash_size ());
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -31,7 +31,7 @@
 | 
			
		|||
 | 
			
		||||
static xchat_plugin *ph;   /* plugin handle */
 | 
			
		||||
 | 
			
		||||
char*
 | 
			
		||||
static char*
 | 
			
		||||
check_version ()
 | 
			
		||||
{
 | 
			
		||||
	HINTERNET hINet, hFile;
 | 
			
		||||
| 
						 | 
				
			
			@ -57,15 +57,17 @@ check_version ()
 | 
			
		|||
			buffer[dwRead] = 0;
 | 
			
		||||
		}
 | 
			
		||||
		
 | 
			
		||||
		InternetCloseHandle (hFile);
 | 
			
		||||
		return buffer;
 | 
			
		||||
 | 
			
		||||
		InternetCloseHandle (hFile);
 | 
			
		||||
	}
 | 
			
		||||
	
 | 
			
		||||
	InternetCloseHandle (hINet);
 | 
			
		||||
 | 
			
		||||
	return "Unknown";
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void
 | 
			
		||||
static void
 | 
			
		||||
print_version ()
 | 
			
		||||
{
 | 
			
		||||
	char *version = check_version ();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue