shithub: battleship

Download patch

ref: dbf2640b573990cf3377dc65824fc6870a5ee3ff
parent: 823f61432e47e648de28e7b701495572665b4e5f
author: rodri <[email protected]>
date: Thu Nov 7 16:03:04 EST 2024

btsd: tiny cleanup.

--- a/btsd.c
+++ b/btsd.c
@@ -731,7 +731,7 @@
 		buf[n] = 0;
 
 		nf = tokenize(buf, f, nelem(f));
-		if((nf == 2 || nf == 3) && strcmp(f[0], "show") == 0){
+		if(strcmp(f[0], "show") == 0){
 			if(nf == 2 && strcmp(f[1], "matches") == 0)
 				fprintmatches(pfd[1]);
 			else if(nf == 3 && strcmp(f[1], "match") == 0){