summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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)