From d8ab842011a467196943cf2aa047fa956af247c5 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Wed, 19 Mar 2008 01:37:00 +0100 Subject: utils: Utils.check_location returns an array of locations if check succeeds --- lib/rbot/core/utils/utils.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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) -- cgit v1.2.3