summaryrefslogtreecommitdiff
path: root/lib/rbot
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-08-08 10:18:24 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-08-08 10:18:24 +0200
commite862f8f2627f2a53ca46a72d351b3614d5406262 (patch)
tree9c0d1751898fe321066db6ffc07132f9d2cb94a8 /lib/rbot
parentc710eee9589a2ca2ab9c307b29efb5cfd0ee175a (diff)
irclog core module: double-percent the {where} in irclog.filename_format
strftime in Ruby versions before 1.8.7 gobbles % which are not part of a known format directives, so %{where} must be double-escaped into %%{where}.
Diffstat (limited to 'lib/rbot')
-rw-r--r--lib/rbot/core/irclog.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rbot/core/irclog.rb b/lib/rbot/core/irclog.rb
index e091832d..61fdc561 100644
--- a/lib/rbot/core/irclog.rb
+++ b/lib/rbot/core/irclog.rb
@@ -21,8 +21,8 @@ class IrcLogModule < CoreBotModule
},
:desc => "List of channels and nicks for which logging is enabled. IRC patterns can be used too. This can be used to override wide patters in irclog.no_log")
Config.register Config::StringValue.new('irclog.filename_format',
- :default => '%{where}', :requires_rescan => true,
- :desc => "filename pattern for the IRC log. You can put typical strftime keys such as %Y for year and %m for month, plus the special %{where} key for location (channel name or user nick)")
+ :default => '%%{where}', :requires_rescan => true,
+ :desc => "filename pattern for the IRC log. You can put typical strftime keys such as %Y for year and %m for month, plus the special %%{where} key for location (channel name or user nick)")
attr :nolog_rx, :dolog_rx
def initialize