From 4ac531dfb82eeafddfebf2055f6ffb75cc498401 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Fri, 6 Apr 2007 08:36:56 +0000 Subject: [PATCH] lastfm plugin: perfectionism run --- data/rbot/plugins/lastfm.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/data/rbot/plugins/lastfm.rb b/data/rbot/plugins/lastfm.rb index f87e5245..2394d3f5 100644 --- a/data/rbot/plugins/lastfm.rb +++ b/data/rbot/plugins/lastfm.rb @@ -69,14 +69,14 @@ class LastFmPlugin < Plugin pre_events.each { |day, month, year, url_who, who, url_where, where, how_many| date = Time.utc(year.to_i, month.to_i, day.to_i) url = LASTFM + url_who - if who.match(/(.*?)<\/strong>(.*)?/) + if who.match(/(.*?)<\/strong>(.+)?/) artist = Bold + $1.ircify_html + Bold - artist << ": " << $2.ircify_html if $2 + artist << ", " << $2.ircify_html if $2 else debug "who: #{who.inspect}" artist = who.ircify_html end - if where.match(/(.*?)<\/strong>(.*)?/) + if where.match(/(.*?)<\/strong>(.+)?/) loc = Bold + $1.ircify_html + Bold loc << ", " << $2.ircify_html if $2 else -- 2.39.5