From 63dabf9311ea5682de4487e28b85f5c1b73bd0fe Mon Sep 17 00:00:00 2001 From: Yaohan Chen Date: Wed, 30 Jan 2008 13:22:23 +0000 Subject: grouphug.rb: apply patch (#170) from tarpman to adjust to new grouphug page format --- data/rbot/plugins/grouphug.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'data/rbot/plugins') 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('()(.*?)(

)', + reg = Regexp.new('(
)(.*?)(

)', Regexp::MULTILINE) confession = reg.match( data )[4].ircify_html confession = "no confession ##{params[:num]} found" if confession.empty? and params[:num] -- cgit v1.2.3