summaryrefslogtreecommitdiff
path: root/network_gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'network_gui.c')
-rw-r--r--network_gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/network_gui.c b/network_gui.c
index 1bc753930..80830fa00 100644
--- a/network_gui.c
+++ b/network_gui.c
@@ -1068,7 +1068,7 @@ static void ClientList_Ban(byte client_no)
uint32 ip = NetworkFindClientInfo(client_no)->client_ip;
for (i = 0; i < lengthof(_network_ban_list); i++) {
- if (_network_ban_list[i] == NULL || _network_ban_list[i][0] == '\0') {
+ if (_network_ban_list[i] == NULL) {
_network_ban_list[i] = strdup(inet_ntoa(*(struct in_addr *)&ip));
break;
}