summaryrefslogtreecommitdiff
path: root/lib/rbot
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2006-07-27 22:00:04 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2006-07-27 22:00:04 +0000
commitdf333b041363b44df3d4cc667d90a75d2b76f6c3 (patch)
tree8ec392c7917b6a53189df9c9ada4237b46b68ed5 /lib/rbot
parentd24e4260457de3ecdae874be87201c7322c4f599 (diff)
Fix the location for the bot log: put it in the botclass directory, and remove any initial dots to prevent it from being hidden
Diffstat (limited to 'lib/rbot')
-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 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