summaryrefslogtreecommitdiffstats
path: root/include/game.php
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2009-05-11 17:39:16 -0700
committerArun Persaud <arun@nubati.net>2009-05-11 22:02:45 -0700
commit268859f56cb8f19b65eca8550dd6a71b6d475971 (patch)
treef01fc7c97a339fa601fdd2eba64d3db8039da65a /include/game.php
parent03d6cd5ba13a0aac918734c1f797df4f149d9194 (diff)
downloade-DoKo-268859f56cb8f19b65eca8550dd6a71b6d475971.tar.gz
e-DoKo-268859f56cb8f19b65eca8550dd6a71b6d475971.tar.bz2
e-DoKo-268859f56cb8f19b65eca8550dd6a71b6d475971.zip
BUGFIX: some email messages had newlines missing before the footer
all emails now have a "\n\n" at the end of the message.
Diffstat (limited to 'include/game.php')
-rw-r--r--include/game.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/game.php b/include/game.php
index 9c8c427..f9daf65 100644
--- a/include/game.php
+++ b/include/game.php
@@ -302,7 +302,7 @@ switch($mystatus)
{
/* cancel the game */
$message = "Hello, \n\n".
- "the game has been canceled due to the request of one of the players.\n";
+ "the game has been canceled due to the request of one of the players.\n\n";
$userids = DB_get_all_userid_by_gameid($gameid);
foreach($userids as $user)
@@ -593,7 +593,7 @@ switch($mystatus)
" the game has been canceled because ".DB_get_name('userid',$nines).
" has five or more nines and nobody is playing solo.\n\n".
" To redeal either start a new game or, in case the game was part of a tournament, \n".
- " go to the last game and use the link at the bottom of the page to redeal.";
+ " go to the last game and use the link at the bottom of the page to redeal.\n\n";
$userids = DB_get_all_userid_by_gameid($gameid);
foreach($userids as $user)
@@ -940,7 +940,7 @@ switch($mystatus)
if($mypos+$next>4)
{
$message = "Hello, \n\n".
- "Game ".DB_format_gameid($gameid)." has been canceled since nobody wanted to take the trump.\n";
+ "Game ".DB_format_gameid($gameid)." has been canceled since nobody wanted to take the trump.\n\n";
$userids = DB_get_all_userid_by_gameid($gameid);
foreach($userids as $user)
@@ -1807,7 +1807,7 @@ switch($mystatus)
$link = "$name: ".$HOST.$INDEX."?action=game&me=".$hash."\n" ;
$message .= $link;
}
- $message .= "\n\n (you can use reply all on this email to reach all the players.)\n";
+ $message .= "\n\n (you can use reply all on this email to reach all the players.)\n\n";
$subject = ' Game over (game '.DB_format_gameid($gameid).') ';
mymail($userids,$subject,$message);
}