(svn r15931) -Codechange: let the host and ban lists use of SmallVector.

This commit is contained in:
rubidium
2009-04-03 12:49:58 +00:00
parent 825aa87e80
commit bc7a870a61
8 changed files with 41 additions and 78 deletions

View File

@@ -1798,12 +1798,7 @@ void NetworkServerBanIP(const char *banip)
}
/* Add user to ban-list */
for (uint index = 0; index < lengthof(_network_ban_list); index++) {
if (_network_ban_list[index] == NULL) {
_network_ban_list[index] = strdup(banip);
break;
}
}
*_network_ban_list.Append() = strdup(banip);
}
bool NetworkCompanyHasClients(CompanyID company)