diff options
author | Tom Gilbert <tom@linuxbrit.co.uk> | 2005-11-14 13:27:40 +0000 |
---|---|---|
committer | Tom Gilbert <tom@linuxbrit.co.uk> | 2005-11-14 13:27:40 +0000 |
commit | b8577fe1712e36c9a378e4026747575ec46c46da (patch) | |
tree | a5d8888028c86e0025ffc9bd1f18a97046cf2b9a /lib/rbot | |
parent | dd434defd37780110bab5ba2e1fb7e73683daf2b (diff) |
try this better fix
Diffstat (limited to 'lib/rbot')
-rw-r--r-- | lib/rbot/ircbot.rb | 4 |
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 |