diff options
author | rubidium <rubidium@openttd.org> | 2009-04-04 00:48:48 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-04-04 00:48:48 +0000 |
commit | c9ebf14ba5a4461edd8790a96f13f0d1e87d60e1 (patch) | |
tree | 139eee3645f1e8b816308de3439f855da228f89b /src/console_cmds.cpp | |
parent | 2fd9f0fffa0d7e13d098f29fc04b8028adce8acf (diff) | |
download | openttd-c9ebf14ba5a4461edd8790a96f13f0d1e87d60e1.tar.xz |
(svn r15947) -Codechange: replace uint32 client_ip with NetworkAddress client_address.
Diffstat (limited to 'src/console_cmds.cpp')
-rw-r--r-- | src/console_cmds.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/console_cmds.cpp b/src/console_cmds.cpp index 2c63e5fdc..11417cccd 100644 --- a/src/console_cmds.cpp +++ b/src/console_cmds.cpp @@ -385,7 +385,7 @@ DEF_CONSOLE_CMD(ConBan) if (argc != 2) return false; - if (strchr(argv[1], '.') == NULL) { // banning with ID + if (strchr(argv[1], '.') == NULL && strchr(argv[1], ':') == NULL) { // banning with ID client_id = (ClientID)atoi(argv[1]); ci = NetworkFindClientInfoFromClientID(client_id); } else { // banning IP |