]> Pileus Git - ~andy/rhawk/commitdiff
Remove pretty formatting from email messages
authorAndy Spencer <andy753421@gmail.com>
Sat, 25 Oct 2014 21:20:47 +0000 (21:20 +0000)
committerAndy Spencer <andy753421@gmail.com>
Sat, 25 Oct 2014 21:20:56 +0000 (21:20 +0000)
This way people can email to a text message number,
which probably won't support unicode, and colors
won't work anyway.

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" \