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