diff --git a/inc/functions.php b/inc/functions.php
index 3a8065c4..33f22942 100644
--- a/inc/functions.php
+++ b/inc/functions.php
@@ -2325,6 +2325,7 @@ function shell_exec_error($command, $suppress_stdout = false) {
* added on. The result is displayed at the top of the post.
*/
function diceRoller($post) {
+ global $config;
if(strpos(strtolower($post->email), 'dice%20') === 0) {
$dicestr = str_split(substr($post->email, strlen('dice%20')));
@@ -2372,7 +2373,7 @@ function diceRoller($post) {
// Prepend the result to the post body
$modifier = ($diceZ != 0) ? ((($diceZ < 0) ? ' - ' : ' + ') . abs($diceZ)) : '';
$dicesum = ($diceX > 1) ? ' = ' . $dicesum : '';
- $post->body = 'Rolled ' . implode(', ', $dicerolls) . $modifier . $dicesum . '
' . $post->body;
+ $post->body = '
Rolled ' . implode(', ', $dicerolls) . $modifier . $dicesum . ' |