mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-01-22 23:26:34 +00:00
(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:
parent
afc9951648
commit
4253f3d330
@ -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++) {
|
||||
|
Loading…
Reference in New Issue
Block a user