console_cmds.c
branch0.4
changeset 10038 946b26c14e3a
parent 9992 36665e9fb144
--- a/console_cmds.c	Thu Jun 15 16:45:29 2006 +0000
+++ b/console_cmds.c	Thu Jun 15 16:47:13 2006 +0000
@@ -433,7 +433,7 @@
 	for (i = 0; i < lengthof(_network_ban_list); i++) {
 		if (_network_ban_list[i] == NULL) continue;
 
-		if (strncmp(_network_ban_list[i], argv[1], strlen(_network_ban_list[i])) == 0 || index == i) {
+		if (strcmp(_network_ban_list[i], argv[1]) == 0 || index == i) {
 			free(_network_ban_list[i]);
 			_network_ban_list[i] = NULL;
 			IConsolePrint(_icolour_def, "IP unbanned.");