(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:
Darkvater 2005-10-19 20:00:05 +00:00
parent afc9951648
commit 4253f3d330
1 changed files with 1 additions and 1 deletions

View File

@ -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++) {