From 3b4f151464a391575639e2d072f2c0d2d93c7ba0 Mon Sep 17 00:00:00 2001 From: David Gadling Date: Tue, 28 Apr 2009 10:33:55 -0700 Subject: [PATCH] quotes: Make sure to turn date's into strings. Whoops. --- data/rbot/plugins/quotes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/rbot/plugins/quotes.rb b/data/rbot/plugins/quotes.rb index 8011812c..f2112051 100644 --- a/data/rbot/plugins/quotes.rb +++ b/data/rbot/plugins/quotes.rb @@ -144,7 +144,7 @@ class QuotePlugin < Plugin } quotes.compact.each{ |q| - bodySubs = { "%%timestamp%%" => q.date, + bodySubs = { "%%timestamp%%" => q.date.to_s, "%%id%%" => CGI.escapeHTML(q.num.to_s), "%%author%%" => CGI.escapeHTML(q.source[0, q.source.index("!")]), "%%channel%%" => CGI.escapeHTML(channel), -- 2.32.0.93.g670b81a890