summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYaohan Chen <hagabaka@nanomachine.STUDENT.cwru.edu>2008-03-21 10:47:30 -0400
committerYaohan Chen <hagabaka@nanomachine.STUDENT.cwru.edu>2008-03-21 10:47:30 -0400
commitfdf1bc954352f19818f5f9f1c86643a2f8ef40c6 (patch)
tree5133ca5713af2b4aa756ad6c63a46db3fe141e66 /lib
parent2181f8f40f6dfc1ca7e48d82c0dfdcde6436ce72 (diff)
parent9a98a241d33d405bb104d27357af64afd4d5e6b2 (diff)
Merge branch 'master' of ssh://ruby-rbot.org/var/git/rbot
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)