summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2005-10-19 20:00:05 +0000
committerDarkvater <Darkvater@openttd.org>2005-10-19 20:00:05 +0000
commit16f1af429bb6f825cec7bc538ebb8b609a88d9a8 (patch)
tree01d9bdd45d92aad05c98d9fdfd36952e9208be11
parente6ff0a52ac12756645ba322bbf9e1f13d16e705d (diff)
downloadopenttd-16f1af429bb6f825cec7bc538ebb8b609a88d9a8.tar.xz
(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
-rw-r--r--console_cmds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/console_cmds.c b/console_cmds.c
index dd1478375..e8bd432e6 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++) {