From 24f6e84559c1b116844e0ff7b68cea007c5e5075 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Mon, 26 Jun 2006 15:35:24 +0000 Subject: [PATCH] Fix issue #71 with the proposed patch --- lib/rbot/dbhash.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.39.5