summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorYaohan Chen <yaohan.chen@gmail.com>2008-01-30 13:22:23 +0000
committerYaohan Chen <yaohan.chen@gmail.com>2008-01-30 13:22:23 +0000
commit63dabf9311ea5682de4487e28b85f5c1b73bd0fe (patch)
treee0f6b8d75c983b51a5f3d64d14d9e2d513ebc268 /data
parentfb0e836fdc1d6959ffabd7c1ab906bc25f329b2e (diff)
grouphug.rb: apply patch (#170) from tarpman to adjust to new grouphug page format
Diffstat (limited to 'data')
-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 bf246b4c..55e9a345 100644
--- a/data/rbot/plugins/grouphug.rb
+++ b/data/rbot/plugins/grouphug.rb
@@ -23,7 +23,7 @@ class GrouphugPlugin < Plugin
begin
data = @bot.httputil.get("http://grouphug.us/#{path}", opts)
- reg = Regexp.new('(<td class="conf-text")(.*?)(<p>)(.*?)(</p>)',
+ reg = Regexp.new('(<div class="content")(.*?)(<p>)(.*?)(</p>)',
Regexp::MULTILINE)
confession = reg.match( data )[4].ircify_html
confession = "no confession ##{params[:num]} found" if confession.empty? and params[:num]