From 3f8710a19b6989cd1c67629a92fd992968579456 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Wed, 31 Oct 2007 21:45:42 +0000 Subject: reaction plugin: fix reaction removal when no index was specified --- data/rbot/plugins/reaction.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3