diff options
author | Dmitry Kim <dmitry point kim at gmail point com> | 2007-09-21 03:36:13 +0000 |
---|---|---|
committer | Dmitry Kim <dmitry point kim at gmail point com> | 2007-09-21 03:36:13 +0000 |
commit | c7c93084ffa27adb2bff30b8c177ce973f83da05 (patch) | |
tree | 74c158edafeaae242fda2fd2372b1e4fe493027f | |
parent | e265413bc16aca216d20c5a01bd373427019d37a (diff) |
* (plugins/reaction) fixed r.range == nil case
-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 |