X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=data%2Frbot%2Fplugins%2Fgrouphug.rb;h=55e9a34503b694976a34cf49c09c231a26d8fe80;hb=1e841175468b3e0357ab278a226a237fe4d7687e;hp=bf246b4c7f7fa23b3911dbf4169b4c01d59071a5;hpb=a6738b25dbe4f8eee9223a60622abac5ac6108e5;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git 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]