summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/rbot/plugins/reaction.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/data/rbot/plugins/reaction.rb b/data/rbot/plugins/reaction.rb
index c493c271..cf7685ec 100644
--- a/data/rbot/plugins/reaction.rb
+++ b/data/rbot/plugins/reaction.rb
@@ -323,7 +323,8 @@ class ReactionPlugin < Plugin
def handle_rm(m, params)
trigger = params[:trigger].to_s
- n = params[:n].to_i rescue nil
+ n = params[:n]
+ n = n.to_i if n
debug trigger.inspect
found = find_reaction(trigger)
purged = nil