From c7c93084ffa27adb2bff30b8c177ce973f83da05 Mon Sep 17 00:00:00 2001 From: Dmitry Kim Date: Fri, 21 Sep 2007 03:36:13 +0000 Subject: * (plugins/reaction) fixed r.range == nil case --- data/rbot/plugins/reaction.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'data/rbot/plugins') 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 -- cgit v1.2.3