From 6188a50d4ba6171481224bc897b45facd286f037 Mon Sep 17 00:00:00 2001 From: Casey Link Date: Sat, 25 Oct 2008 13:46:35 -0400 Subject: * (grouphug) fix for grouphug layout changes --- data/rbot/plugins/grouphug.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/rbot/plugins/grouphug.rb b/data/rbot/plugins/grouphug.rb index 8f89702e..90527fb7 100644 --- a/data/rbot/plugins/grouphug.rb +++ b/data/rbot/plugins/grouphug.rb @@ -57,7 +57,7 @@ class GrouphugPlugin < Plugin data = @bot.httputil.get("http://grouphug.us/#{path}", opts) res = data.scan(REG) - confession = res[0][0].ircify_html + confession = res[2][0].ircify_html # use res[2] to skip the new sidebar "Group Hug is run by one person..." and other text. confession = "no confession ##{params[:num]} found" if confession.empty? and params[:num] m.reply confession else # Cache random confessions -- cgit v1.2.3