summaryrefslogtreecommitdiff
path: root/console_cmds.c
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
commit4253f3d3301d4f0a456b0c2a8da1a7e45901e4ca (patch)
tree01d9bdd45d92aad05c98d9fdfd36952e9208be11 /console_cmds.c
parentafc9951648e886c6e645f2b72b2da4411ba85ca8 (diff)
downloadopenttd-4253f3d3301d4f0a456b0c2a8da1a7e45901e4ca.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
Diffstat (limited to 'console_cmds.c')
-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++) {