From 0ee075cd1ea745e0a96e4f12476e554714619a31 Mon Sep 17 00:00:00 2001 From: Tom Gilbert Date: Wed, 10 Aug 2005 23:01:18 +0000 Subject: patch from Alexey Froloff to use homedir from /etc/passwd (oops!) instead of assuming /home/$user :D --- lib/rbot/ircbot.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3