]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
try this better fix
authorTom Gilbert <tom@linuxbrit.co.uk>
Mon, 14 Nov 2005 13:27:40 +0000 (13:27 +0000)
committerTom Gilbert <tom@linuxbrit.co.uk>
Mon, 14 Nov 2005 13:27:40 +0000 (13:27 +0000)
lib/rbot/ircbot.rb

index 94084de398d7f77555bd86e524e0af048b86236c..271d0d70ea358d9590872fed932c377bfa37b119 100644 (file)
@@ -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