summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-03-19 01:37:00 +0100
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-03-19 14:49:49 +0100
commitd8ab842011a467196943cf2aa047fa956af247c5 (patch)
tree995da8c58833eafef36c8f65d07285476b50fee1
parentc6d451f448a086d78c274d4907896f56739c9370 (diff)
utils: Utils.check_location returns an array of locations if check succeeds
-rw-r--r--lib/rbot/core/utils/utils.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rbot/core/utils/utils.rb b/lib/rbot/core/utils/utils.rb
index e00b4079..529c37bd 100644
--- a/lib/rbot/core/utils/utils.rb
+++ b/lib/rbot/core/utils/utils.rb
@@ -590,7 +590,7 @@ module ::Irc
end
loc ||= []
debug loc
- return !loc.empty?
+ return loc.empty? ? nil : loc
end
# This method extracts title and content (first par)