From e8ddf5e58c9e72647abe102713a9190c638cb07b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Janouch?= Date: Sat, 2 Aug 2014 15:50:30 +0200 Subject: [PATCH] coin: wrap an if statement --- plugins/coin | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/coin b/plugins/coin index cf9b29b..3390b5f 100755 --- a/plugins/coin +++ b/plugins/coin @@ -97,7 +97,11 @@ while {[gets stdin line] != -1} { set input [string range $input [string length $prefix] end] if {$input == "coin"} { - if {rand() < 0.5} { pmrespond "Heads." } else { pmrespond "Tails." } + if {rand() < 0.5} { + pmrespond "Heads." + } else { + pmrespond "Tails." + } } elseif {[regexp {^dice( +|$)(.*)} $input -> _ args]} { if {! [string is integer -strict $args] || $args <= 0} { pmrespond "Invalid or missing number."