From 03b520370f6185d8604bc4068e8ac319c67e8703 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Tue, 9 Aug 2011 14:14:46 -0400 Subject: Fix warning in roll.php, generate .gitignore on the fly --- roll.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'roll.php') diff --git a/roll.php b/roll.php index 0d8aa25..d888f64 100644 --- a/roll.php +++ b/roll.php @@ -6,7 +6,7 @@ $string = $argv[1]; preg_match('/([0-9]*)d([0-9]+)(([+-][0-9]+))?/', $string, $matches); $dice = (int)$matches[1]; $die_size = (int)$matches[2]; -$mod = (int)$matches[3]; +@$mod = (int)$matches[3]; if ($dice<1) $dice = 1; -- cgit v1.2.3-2-g168b