From 4253f3d3301d4f0a456b0c2a8da1a7e45901e4ca Mon Sep 17 00:00:00 2001 From: Darkvater Date: Wed, 19 Oct 2005 20:00:05 +0000 Subject: [PATCH] (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 --- console_cmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/console_cmds.c b/console_cmds.c index dd14783757..e8bd432e6e 100644 --- a/console_cmds.c +++ b/console_cmds.c @@ -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++) {