]> Pileus Git - ~andy/rhawk/commitdiff
Swizzle .show
authorAndy Spencer <andy753421@gmail.com>
Mon, 9 Dec 2013 05:50:24 +0000 (05:50 +0000)
committerAndy Spencer <andy753421@gmail.com>
Mon, 9 Dec 2013 05:51:23 +0000 (05:51 +0000)
spades.awk

index c3a281b3bc10dca015d61eb4d2cb55b4060943c2..c043eebb579d6d942c3bff6bd4855ac177d03e49 100644 (file)
@@ -547,8 +547,11 @@ match($0, /^\.newgame ?([0-9]+) *- *([0-9]+)$/, _arr) {
 
 sp_state ~ "(bid|pass|play)" &&
 /^\.show/ {
+       delete _lines
        for (_i in sp_share)
-               say(_i " can play for " sp_share[_i]);
+               _lines[sp_share[_i]] = _lines[sp_share[_i]] " " _i
+       for (_i in _lines)
+               say(_i " allowed:" _lines[_i])
 }
 
 !sp_valid &&