summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Beisig <alexander.beisig@gmx.de>2006-06-09 16:35:29 +0000
committerAlexander Beisig <alexander.beisig@gmx.de>2006-06-09 16:35:29 +0000
commit8002a9891da12b4da8de9437fb1b524f228e7258 (patch)
tree407b85b66b7cf55e1a7fde4908845a0165c61b07
parent5b55193a4263464efd71279dddf57a1a14dd22e4 (diff)
fixed directory structure problems with the new db code (#73, comment at #59)
-rw-r--r--lib/rbot/ircbot.rb2
1 files changed, 2 insertions, 0 deletions
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