(svn r15947) -Codechange: replace uint32 client_ip with NetworkAddress client_address.

This commit is contained in:
rubidium
2009-04-04 00:48:48 +00:00
parent 2fd9f0fffa
commit c9ebf14ba5
7 changed files with 19 additions and 21 deletions

View File

@@ -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