Changeset - r2541:2ab9dad7aae7
[Not reviewed]
master
0 1 0
Darkvater - 18 years ago 2005-10-19 20:00:05
darkvater@openttd.org
(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
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
console_cmds.c
Show inline comments
 
@@ -414,7 +414,7 @@ DEF_CONSOLE_CMD(ConUnBan)
 

	
 
	if (argc != 2) return false;
 

	
 
	index = (strrchr(argv[1], '.') == '\0') ? atoi(argv[1]) : 0;
 
	index = (strchr(argv[1], '.') == NULL) ? atoi(argv[1]) : 0;
 
	index--;
 

	
 
	for (i = 0; i < lengthof(_network_ban_list); i++) {
0 comments (0 inline, 0 general)