diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2006-07-21 23:31:01 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2006-07-21 23:31:01 +0000 |
commit | 597bfec2266fc9c6c29f84a0d811fe264932500b (patch) | |
tree | 44f4e8889df7c3ddf94f68deafd54aa7a6da4a43 | |
parent | cbb827be41b389726d6017efca7fa166bff038e5 (diff) |
Fix path creation when upgrading 0.9.9 or earlier single-db registry
-rw-r--r-- | lib/rbot/registry.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rbot/registry.rb b/lib/rbot/registry.rb index 63fd693e..bc52a373 100644 --- a/lib/rbot/registry.rb +++ b/lib/rbot/registry.rb @@ -46,7 +46,7 @@ module Irc if prefix.gsub!(/\+/, "/") dirs = File.dirname("#{@bot.botclass}/registry/#{prefix}.db").split("/") dirs.length.times { |i| - dir = dirs[0,i+1].join("/") + dir = dirs[0,i+1].join("/")+"/" unless File.exist?(dir) log "creating subregistry directory #{dir}" Dir.mkdir(dir) |