diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-02-13 00:38:09 +0100 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-02-13 00:38:09 +0100 |
commit | 532fa08ee8f4dab7ccef8f67b71e0437391ef9d4 (patch) | |
tree | 9ff26d386c2f1996fa038901aa140a6043b3d39b /lib/rbot | |
parent | a13ef03521ce4a8efd1b51f68bab66483653e8e4 (diff) |
* fix a bug in the definition of Object#nil_or_empty?
Diffstat (limited to 'lib/rbot')
-rw-r--r-- | lib/rbot/irc.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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
|