diff options
-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++) { |