]> Pileus Git - ~andy/rhawk/blobdiff - spades.awk
Add more testing
[~andy/rhawk] / spades.awk
index c7cf9cbe87c4c250f815d53bdadfaf6419bf6077..c3a281b3bc10dca015d61eb4d2cb55b4060943c2 100644 (file)
@@ -428,6 +428,14 @@ AUTH == OWNER &&
        next
 }
 
+AUTH == OWNER &&
+/^\.order (\w+) ([0-4])/ {
+       say(sp_channel, FROM " is cheating for " $2)
+       sp_order[$3] = $2
+       sp_players[$2] = $3
+       sp_player = sp_order[sp_turn]
+}
+
 AUTH == OWNER &&
 sp_state == "play" &&
 /^\.force (\w+) (\S+)$/ {