X-Git-Url: http://pileus.org/git/?p=~andy%2Frhawk;a=blobdiff_plain;f=spades.awk;h=2ca0e376e7fbe7e975ca67d5a78defe5c1ccddff;hp=fee89509557a8747f35e33d756cc4a28c704cf95;hb=831b9e0d3c7f3cf34bc89cee146a2605d9d32079;hpb=a9f8b9ba4abf65d18387f8bfc73b7f4c273cb9df diff --git a/spades.awk b/spades.awk index fee8950..2ca0e37 100644 --- a/spades.awk +++ b/spades.awk @@ -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" \