From 3ce1244cd5010de3fa913e993840d0182952cd8a Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Tue, 9 Jan 2007 18:03:02 +0000 Subject: Downcase the irc log location, so that loggin to e.g. #Channel and #channel go the same place --- lib/rbot/ircbot.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/rbot') 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 -- cgit v1.2.3