diff options
Diffstat (limited to 'lib/rbot')
-rw-r--r-- | lib/rbot/registry/tc.rb | 4 |
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) |