From dd434defd37780110bab5ba2e1fb7e73683daf2b Mon Sep 17 00:00:00 2001 From: Tom Gilbert Date: Fri, 4 Nov 2005 21:04:00 +0000 Subject: more escaping --- lib/rbot/ircbot.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/rbot') diff --git a/lib/rbot/ircbot.rb b/lib/rbot/ircbot.rb index d07c4977..94084de3 100644 --- a/lib/rbot/ircbot.rb +++ b/lib/rbot/ircbot.rb @@ -439,6 +439,7 @@ class IrcBot def log(message, where="server") message.chomp! stamp = Time.now.strftime("%Y/%m/%d %H:%M:%S") + where.gsub!(/[:!?$*()\/\\<>|"']/, "_") unless(@logs.has_key?(where)) @logs[where] = File.new("#{@botclass}/logs/#{where}", "a") @logs[where].sync = true -- cgit v1.2.3