]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - data/rbot/plugins/grouphug.rb
+ (rss.rb) monkey-patch some basic common api over different rss item impls
[user/henk/code/ruby/rbot.git] / data / rbot / plugins / grouphug.rb
index 8f89702ed6c44ba3a77b7c10c688d17b780bff98..90527fb7f61db1cd75bc67bfd98fc614daf58249 100644 (file)
@@ -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