diff options
Diffstat (limited to 'lib')
-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 |