diff options
Diffstat (limited to 'data')
-rw-r--r-- | data/rbot/plugins/reaction.rb | 2 |
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 |