]> Pileus Git - ~andy/rhawk/blobdiff - spades.awk
Remove pretty formatting from email messages
[~andy/rhawk] / spades.awk
index fee89509557a8747f35e33d756cc4a28c704cf95..2ca0e376e7fbe7e975ca67d5a78defe5c1ccddff 100644 (file)
@@ -760,8 +760,8 @@ sp_state == "play" &&
 
        if (/!!/ && (sp_state == "bid" || sp_state == "play")) {
                if (sp_player in sp_notify) {
-                       if (!_bids) _bids = "none"
-                       if (!_pile) _pile = "none"
+                       _bids = _bids ? _bids    : "none"
+                       _pile = _pile ? sp_piles : "none"
                        mail_send(sp_notify[sp_player],     \
                                "It is your " sp_state "!", \
                                "Bids so far:  " _bids "\n" \