summaryrefslogtreecommitdiff
path: root/data/rbot/plugins/reaction.rb
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-09-20 13:49:16 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-09-20 13:49:16 +0000
commitb684eb8f3efde42e96e1aaaa1e0230aa5d20fa4d (patch)
treed47246f1df4e00737987bffba2d753dfea9b4fa8 /data/rbot/plugins/reaction.rb
parent18c29b752eb624693541af196dfbe108f41bdd53 (diff)
reaction plugin: missing \! in string-to-chance conversion
Diffstat (limited to 'data/rbot/plugins/reaction.rb')
-rw-r--r--data/rbot/plugins/reaction.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/rbot/plugins/reaction.rb b/data/rbot/plugins/reaction.rb
index c1c3074e..448794b2 100644
--- a/data/rbot/plugins/reaction.rb
+++ b/data/rbot/plugins/reaction.rb
@@ -216,7 +216,7 @@ class ReactionPlugin < Plugin
reply = params[:reply].to_s
pct = params[:chance] || "1"
- if pct.sub(/%$/,'')
+ if pct.sub!(/%$/,'')
pct = (pct.to_f/100).clip(0,1)
else
pct = pct.to_f.clip(0,1)