summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rwxr-xr-xplugins/coin6
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."