diff options
Diffstat (limited to 'plugins/coin')
-rwxr-xr-x | plugins/coin | 6 |
1 files changed, 5 insertions, 1 deletions
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." |