summaryrefslogtreecommitdiff
path: root/data/rbot/plugins/grouphug.rb
diff options
context:
space:
mode:
authorCasey Link <unnamedrambler@gmail.com>2008-10-25 13:46:35 -0400
committerCasey Link <unnamedrambler@gmail.com>2008-10-27 16:29:14 -0400
commit6188a50d4ba6171481224bc897b45facd286f037 (patch)
tree49f32cc14e22a2ad752b0def6d3329bf7faa44f4 /data/rbot/plugins/grouphug.rb
parent9f784d3c8a3e3b3fa3c57c196bdc2b9975d952b1 (diff)
* (grouphug) fix for grouphug layout changes
Diffstat (limited to 'data/rbot/plugins/grouphug.rb')
-rw-r--r--data/rbot/plugins/grouphug.rb2
1 files changed, 1 insertions, 1 deletions
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