diff options
Diffstat (limited to 'data/rbot')
-rw-r--r-- | data/rbot/plugins/reaction.rb | 2 |
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) |