summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorDmitry Kim <dmitry point kim at gmail point com>2007-09-21 03:36:13 +0000
committerDmitry Kim <dmitry point kim at gmail point com>2007-09-21 03:36:13 +0000
commitc7c93084ffa27adb2bff30b8c177ce973f83da05 (patch)
tree74c158edafeaae242fda2fd2372b1e4fe493027f /data
parente265413bc16aca216d20c5a01bd373427019d37a (diff)
* (plugins/reaction) fixed r.range == nil case
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 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