summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/rbot/registry/tc.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/rbot/registry/tc.rb b/lib/rbot/registry/tc.rb
index ca05ebeb..b4e60d71 100644
--- a/lib/rbot/registry/tc.rb
+++ b/lib/rbot/registry/tc.rb
@@ -212,6 +212,10 @@ class Bot
def upgrade_data2
oldreg = @bot.path 'plugin_registry.db'
+ if not defined? BDB
+ warning "Won't upgrade data: BDB not installed" if File.exist? oldreg
+ return
+ end
newdir = @bot.path 'registry'
if File.exist?(oldreg)
Dir.mkdir(newdir) unless File.exist?(newdir)