summaryrefslogtreecommitdiff
path: root/data/rbot/plugins/reaction.rb
diff options
context:
space:
mode:
Diffstat (limited to 'data/rbot/plugins/reaction.rb')
-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 2887d574..20dd1188 100644
--- a/data/rbot/plugins/reaction.rb
+++ b/data/rbot/plugins/reaction.rb
@@ -111,7 +111,7 @@ class ::Reaction
pick = rand()
debug "#{pick} in #{@replies.map { |r| r.range}.inspect}"
@replies.each { |r|
- return r if r.range and r.range === pick
+ return r if (!r.range) or r.range === pick
}
return nil
end