diff options
author | Darkvater <Darkvater@openttd.org> | 2005-10-19 20:00:05 +0000 |
---|---|---|
committer | Darkvater <Darkvater@openttd.org> | 2005-10-19 20:00:05 +0000 |
commit | 16f1af429bb6f825cec7bc538ebb8b609a88d9a8 (patch) | |
tree | 01d9bdd45d92aad05c98d9fdfd36952e9208be11 | |
parent | e6ff0a52ac12756645ba322bbf9e1f13d16e705d (diff) | |
download | openttd-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.c | 2 |
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++) { |