diff options
author | Tom Gilbert <tom@linuxbrit.co.uk> | 2005-08-10 23:01:18 +0000 |
---|---|---|
committer | Tom Gilbert <tom@linuxbrit.co.uk> | 2005-08-10 23:01:18 +0000 |
commit | 0ee075cd1ea745e0a96e4f12476e554714619a31 (patch) | |
tree | 23ef8d02a625180a13c683c43e653c0d0947802d /lib | |
parent | 96cbc4cf47d5310938af4f39a994b11f067110d3 (diff) |
patch from Alexey Froloff to use homedir from /etc/passwd (oops!) instead of
assuming /home/$user :D
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rbot/ircbot.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rbot/ircbot.rb b/lib/rbot/ircbot.rb index c71386bc..29d4711d 100644 --- a/lib/rbot/ircbot.rb +++ b/lib/rbot/ircbot.rb @@ -120,7 +120,7 @@ class IrcBot exit 2 end - botclass = "/home/#{Etc.getlogin}/.rbot" unless botclass + botclass = "#{Etc.getpwnam(Etc.getlogin).dir}/.rbot" unless botclass @botclass = botclass.gsub(/\/$/, "") unless FileTest.directory? botclass |