summaryrefslogtreecommitdiff
path: root/data/rbot
diff options
context:
space:
mode:
Diffstat (limited to 'data/rbot')
-rw-r--r--data/rbot/plugins/reaction.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/data/rbot/plugins/reaction.rb b/data/rbot/plugins/reaction.rb
index ec48caa0..4f757ddd 100644
--- a/data/rbot/plugins/reaction.rb
+++ b/data/rbot/plugins/reaction.rb
@@ -223,14 +223,16 @@ class ReactionPlugin < Plugin
m1.first[0].length <=> m2.first[0].length
}.last
matched = match[0]
- stuff = match.post_match.strip
- target, what = stuff.split(/\s+/, 2)
+ before = match.pre_match.strip
+ after = match.post_match.strip
+ target, what = after.split(/\s+/, 2)
extra = {
:who => m.sourcenick,
:match => matched,
:target => target,
:what => what,
- :stuff => stuff
+ :before => before,
+ :after => after
}
match.to_a.each_with_index { |d, i|
extra[:"match#{i}"] = d