summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-10-31 21:45:42 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-10-31 21:45:42 +0000
commit3f8710a19b6989cd1c67629a92fd992968579456 (patch)
tree3d7fac8cfb3187b51748eaf9e26f8416a98f4275 /data
parent10d483c38cb1ca260bdc089d511e8d812d4882ba (diff)
reaction plugin: fix reaction removal when no index was specified
Diffstat (limited to 'data')
-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