From: Andy Spencer Date: Sat, 25 Oct 2014 21:20:47 +0000 (+0000) Subject: Remove pretty formatting from email messages X-Git-Url: http://pileus.org/git/?p=~andy%2Frhawk;a=commitdiff_plain;h=831b9e0d3c7f3cf34bc89cee146a2605d9d32079 Remove pretty formatting from email messages This way people can email to a text message number, which probably won't support unicode, and colors won't work anyway. --- 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" \