diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-01-09 18:03:02 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-01-09 18:03:02 +0000 |
commit | 3ce1244cd5010de3fa913e993840d0182952cd8a (patch) | |
tree | e845b7e0dbcd7b1efa0e0c9ed4fd2beeb21c024c | |
parent | ed6ecc160458aa1288691f833c251f6dba4b3ed6 (diff) |
Downcase the irc log location, so that loggin to e.g. #Channel and #channel go the same place
-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 470bb522..9687f30e 100644 --- a/lib/rbot/ircbot.rb +++ b/lib/rbot/ircbot.rb @@ -768,7 +768,7 @@ class IrcBot def irclog(message, where="server") message = message.chomp stamp = Time.now.strftime("%Y/%m/%d %H:%M:%S") - where = where.to_s.gsub(/[:!?$*()\/\\<>|"']/, "_") + where = where.downcase.gsub(/[:!?$*()\/\\<>|"']/, "_") unless(@logs.has_key?(where)) @logs[where] = File.new("#{@botclass}/logs/#{where}", "a") @logs[where].sync = true |