summaryrefslogtreecommitdiff
path: root/lib/rbot
diff options
context:
space:
mode:
authorTom Gilbert <tom@linuxbrit.co.uk>2005-11-04 21:04:00 +0000
committerTom Gilbert <tom@linuxbrit.co.uk>2005-11-04 21:04:00 +0000
commitdd434defd37780110bab5ba2e1fb7e73683daf2b (patch)
tree00f3455b3d78df66ca612233098de040ee2a4c41 /lib/rbot
parent304cf05b0dd3834a675806b1c828824a473a5b42 (diff)
more escaping
Diffstat (limited to 'lib/rbot')
-rw-r--r--lib/rbot/ircbot.rb1
1 files changed, 1 insertions, 0 deletions
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