]> Pileus Git - ~andy/rhawk/blobdiff - spades.awk
Rearrange sp_say
[~andy/rhawk] / spades.awk
index 2e2261b08bcd9c0e1e94e11b1219f3a4d7140abb..04a03a97dd984d91fa6af2388769cab2b268ef17 100644 (file)
@@ -159,10 +159,10 @@ function sp_load(file,    game)
 
 function sp_say(msg)
 {
-       print strftime("%Y-%m-%d %H:%M:%S | ") msg >> "logs/" sp_log
-       fflush("logs/" sp_log)
        say(sp_channel, msg)
        print msg |& sp_sock
+       print strftime("%Y-%m-%d %H:%M:%S | ") msg >> "logs/" sp_log
+       fflush("logs/" sp_log)
 }
 
 function sp_pretty(cards, who)
@@ -718,7 +718,7 @@ sp_state ~ "(bid|pass|play)" &&
        for (_i in sp_share)
                _lines[sp_share[_i]] = _lines[sp_share[_i]] " " _i
        for (_i in _lines)
-               sp_say(_i " allowed:" _lines[_i])
+               say(_i " allowed:" _lines[_i])
 }
 
 !sp_valid &&