Commit Diff


commit - f56409da53e23e91e00fdac0a653483a0180c9b0
commit + 409f8c1feffa75a0f06ca01c152398c2e25bba0f
blob - ee9b8d798deec4568298c8bb938eb586ececd8db
blob + 1161cfd6485e03538da906b16621f871a2e8c656
--- FICS/command.c
+++ FICS/command.c
@@ -232,7 +232,8 @@ match_command(char *comm, int p)
 		i++;
 	}
 
-	if (in_list(p, L_REMOVEDCOM, command_list[gotIt].comm_name)) {
+	if (gotIt >= 0 &&
+	    in_list(p, L_REMOVEDCOM, command_list[gotIt].comm_name)) {
 		pprintf(p, "Due to a bug - this command has been temporarily "
 		    "removed.\n");
 		return -COM_FAILED;