summaryrefslogtreecommitdiff
path: root/data/rbot/plugins
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-04-06 08:36:56 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-04-06 08:36:56 +0000
commit4ac531dfb82eeafddfebf2055f6ffb75cc498401 (patch)
treef57fe4cbb962a0346b6cc454e545baa0837319db /data/rbot/plugins
parentebfd1362c61505a9a972e136c820a428ba391172 (diff)
lastfm plugin: perfectionism run
Diffstat (limited to 'data/rbot/plugins')
-rw-r--r--data/rbot/plugins/lastfm.rb6
1 files 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>(.*?)<\/strong>(.*)?/)
+ if who.match(/<strong>(.*?)<\/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>(.*?)<\/strong>(.*)?/)
+ if where.match(/<strong>(.*?)<\/strong>(.+)?/)
loc = Bold + $1.ircify_html + Bold
loc << ", " << $2.ircify_html if $2
else