diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2006-06-26 15:35:24 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2006-06-26 15:35:24 +0000 |
commit | 24f6e84559c1b116844e0ff7b68cea007c5e5075 (patch) | |
tree | 231a8cce8c50c526412b057235684f01bbf0254e /lib/rbot | |
parent | c27fee93082200ec068ae73bee1a5cb85431c67d (diff) |
Fix issue #71 with the proposed patch
Diffstat (limited to 'lib/rbot')
-rw-r--r-- | lib/rbot/dbhash.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/rbot/dbhash.rb b/lib/rbot/dbhash.rb index e687cebf..3168f208 100644 --- a/lib/rbot/dbhash.rb +++ b/lib/rbot/dbhash.rb @@ -10,7 +10,10 @@ end module BDB class CIBtree < Btree def bdb_bt_compare(a, b) - a.downcase <=> b.downcase + if a == nil || b == nil + debug "CIBTree: WARNING: comparing #{a.inspect} (#{self[a].inspect}) with #{b.inspect} (#{self[b].inspect})" + end + (a||'').downcase <=> (b||'').downcase end end end |