diff options
Diffstat (limited to 'lib/rbot')
-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 a0b64d9b..5be3cc78 100644 --- a/lib/rbot/ircbot.rb +++ b/lib/rbot/ircbot.rb @@ -258,7 +258,7 @@ class IrcBot @logfile = @config['log.file'] if @logfile.class!=String || @logfile.empty? - @logfile = File.basename(botclass)+".log" + @logfile = "#{botclass}/#{File.basename(botclass).gsub(/^\.+/,'')}.log" end # See http://blog.humlab.umu.se/samuel/archives/000107.html |