summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Gilbert <tom@linuxbrit.co.uk>2005-08-10 23:01:18 +0000
committerTom Gilbert <tom@linuxbrit.co.uk>2005-08-10 23:01:18 +0000
commit0ee075cd1ea745e0a96e4f12476e554714619a31 (patch)
tree23ef8d02a625180a13c683c43e653c0d0947802d
parent96cbc4cf47d5310938af4f39a994b11f067110d3 (diff)
patch from Alexey Froloff to use homedir from /etc/passwd (oops!) instead of
assuming /home/$user :D
-rw-r--r--lib/rbot/ircbot.rb2
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