diff options
author | Tom Gilbert <tom@linuxbrit.co.uk> | 2005-11-04 21:04:00 +0000 |
---|---|---|
committer | Tom Gilbert <tom@linuxbrit.co.uk> | 2005-11-04 21:04:00 +0000 |
commit | dd434defd37780110bab5ba2e1fb7e73683daf2b (patch) | |
tree | 00f3455b3d78df66ca612233098de040ee2a4c41 | |
parent | 304cf05b0dd3834a675806b1c828824a473a5b42 (diff) |
more escaping
-rw-r--r-- | lib/rbot/ircbot.rb | 1 |
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 |