(svn r3070) - it doesn't matter where the '.' is found for the IP, if it is found, it is not a normal index when unbanning clients ('\0' should of course be NULL); thx Tron
This commit is contained in:
		@@ -414,7 +414,7 @@ DEF_CONSOLE_CMD(ConUnBan)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	if (argc != 2) return false;
 | 
						if (argc != 2) return false;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	index = (strrchr(argv[1], '.') == '\0') ? atoi(argv[1]) : 0;
 | 
						index = (strchr(argv[1], '.') == NULL) ? atoi(argv[1]) : 0;
 | 
				
			||||||
	index--;
 | 
						index--;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	for (i = 0; i < lengthof(_network_ban_list); i++) {
 | 
						for (i = 0; i < lengthof(_network_ban_list); i++) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user