From 532fa08ee8f4dab7ccef8f67b71e0437391ef9d4 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Wed, 13 Feb 2008 00:38:09 +0100 Subject: * fix a bug in the definition of Object#nil_or_empty? --- lib/rbot/irc.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/rbot') diff --git a/lib/rbot/irc.rb b/lib/rbot/irc.rb index f3a904e7..8ef848f7 100644 --- a/lib/rbot/irc.rb +++ b/lib/rbot/irc.rb @@ -27,7 +27,7 @@ class Object # checks if the receiver is nil or empty def nil_or_empty? return true unless self - return true if self.respond_to? :empty and self.empty? + return true if self.respond_to? :empty? and self.empty? return false end -- cgit v1.2.3