From 8002a9891da12b4da8de9437fb1b524f228e7258 Mon Sep 17 00:00:00 2001 From: Alexander Beisig Date: Fri, 9 Jun 2006 16:35:29 +0000 Subject: fixed directory structure problems with the new db code (#73, comment at #59) --- lib/rbot/ircbot.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/rbot/ircbot.rb b/lib/rbot/ircbot.rb index e8806254..b2c7a88f 100644 --- a/lib/rbot/ircbot.rb +++ b/lib/rbot/ircbot.rb @@ -124,6 +124,7 @@ class IrcBot botclass = "#{Etc.getpwuid(Process::Sys.geteuid)[:dir]}/.rbot" unless botclass #botclass = "#{ENV['HOME']}/.rbot" unless botclass + botclass = File.expand_path(botclass) @botclass = botclass.gsub(/\/$/, "") unless FileTest.directory? botclass @@ -136,6 +137,7 @@ class IrcBot end Dir.mkdir("#{botclass}/logs") unless File.exist?("#{botclass}/logs") + Dir.mkdir("#{botclass}/registry") unless File.exist?("#{botclass}/registry") @ping_timer = nil @pong_timer = nil -- cgit v1.2.3