summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Gilbert <tom@linuxbrit.co.uk>2005-11-14 13:27:40 +0000
committerTom Gilbert <tom@linuxbrit.co.uk>2005-11-14 13:27:40 +0000
commitb8577fe1712e36c9a378e4026747575ec46c46da (patch)
treea5d8888028c86e0025ffc9bd1f18a97046cf2b9a
parentdd434defd37780110bab5ba2e1fb7e73683daf2b (diff)
try this better fix
-rw-r--r--lib/rbot/ircbot.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rbot/ircbot.rb b/lib/rbot/ircbot.rb
index 94084de3..271d0d70 100644
--- a/lib/rbot/ircbot.rb
+++ b/lib/rbot/ircbot.rb
@@ -122,8 +122,8 @@ class IrcBot
exit 2
end
- #botclass = "#{Etc.getpwnam(Etc.getlogin).dir}/.rbot" unless botclass
- botclass = "#{ENV['HOME']}/.rbot" unless botclass
+ botclass = "#{Etc.getpwuid(Process::Sys.geteuid)[:dir]}/.rbot" unless botclass
+ #botclass = "#{ENV['HOME']}/.rbot" unless botclass
@botclass = botclass.gsub(/\/$/, "")
unless FileTest.directory? botclass