summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2010-12-31 10:20:55 +0100
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2010-12-31 10:20:55 +0100
commit71fc5469f228c7be8f140dcec6726a48c0ced595 (patch)
treec14e1e8ede4af3048b146582b4a8f75f03b47893 /data
parent2bf7bc4cbcf61afc2f59ad9a897c4740cdbc39ef (diff)
fake message: set replied on reply
Although the reply method for fake messages was actually relying on the original, we still need to set 'replied' to prevent the fake message from being wrongly delegated to 'unreplied'. The most obvious bug this commit fixes is the potentially infinite loop triggered by defining a command reaction triggered by the command name itself (e.g. reply to ping with cmd:ping).
Diffstat (limited to 'data')
-rw-r--r--data/rbot/plugins/reaction.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/rbot/plugins/reaction.rb b/data/rbot/plugins/reaction.rb
index d3f4b558..879b89fa 100644
--- a/data/rbot/plugins/reaction.rb
+++ b/data/rbot/plugins/reaction.rb
@@ -238,7 +238,7 @@ class ReactionPlugin < Plugin
def unreplied(m)
return unless PrivMessage === m
- debug "testing #{m} for reactions"
+ debug "testing #{m.inspect} for reactions"
return if @reactions.empty?
candidates = @reactions.map { |react|
blob = react === m