summaryrefslogtreecommitdiff
path: root/data/rbot/plugins/quiz.rb
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2006-10-24 15:24:13 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2006-10-24 15:24:13 +0000
commit43ac960aa89e5a02291fe875627dac88ae7fda34 (patch)
tree6d0cb13f4c299978174d72730c602cd274bbfdba /data/rbot/plugins/quiz.rb
parent77512a98814b8c8ae5e6314a8bdf30b1967d95d2 (diff)
Initial implementation of proper caching based on last-modified and etag HTTP headers
Diffstat (limited to 'data/rbot/plugins/quiz.rb')
-rw-r--r--data/rbot/plugins/quiz.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/rbot/plugins/quiz.rb b/data/rbot/plugins/quiz.rb
index 4cd26f15..629b7232 100644
--- a/data/rbot/plugins/quiz.rb
+++ b/data/rbot/plugins/quiz.rb
@@ -116,7 +116,7 @@ class QuizPlugin < Plugin
# Wiki data
begin
- serverdata = @bot.httputil.get( URI.parse( "http://amarok.kde.org/amarokwiki/index.php/Rbot_Quiz" ) )
+ serverdata = @bot.httputil.get_cached( URI.parse( "http://amarok.kde.org/amarokwiki/index.php/Rbot_Quiz" ) )
serverdata = serverdata.split( "QUIZ DATA START\n" )[1]
serverdata = serverdata.split( "\nQUIZ DATA END" )[0]
serverdata = serverdata.gsub( /&nbsp;/, " " ).gsub( /&amp;/, "&" ).gsub( /&quot;/, "\"" )