From 48add0bcc08d226e1a7164c9d2eaf14a2609b533 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Sat, 5 Jul 2008 00:59:40 +0200 Subject: lastfm plugin: some formatting changes for events --- data/rbot/plugins/lastfm.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'data/rbot/plugins/lastfm.rb') diff --git a/data/rbot/plugins/lastfm.rb b/data/rbot/plugins/lastfm.rb index b2fd7d23..08a56f8c 100644 --- a/data/rbot/plugins/lastfm.rb +++ b/data/rbot/plugins/lastfm.rb @@ -28,10 +28,10 @@ class ::LastFmEvent if @artists.length > 10 #more than 10 artists and it floods diff = @artists.length - 10 - @artist_string = @artists[0..10].join(', ') + @artist_string = Bold + @artists[0..10].join(', ') + Bold @artist_string << _(" and %{n} more...") % {:n => diff} else - @artist_string = @artists.join(', ') + @artist_string = Bold + @artists.join(', ') + Bold end end @@ -124,7 +124,7 @@ class LastFmPlugin < Plugin venue = e.elements["venue"].elements["name"].text city = e.elements["venue"].elements["location"].elements["city"].text country = e.elements["venue"].elements["location"].elements["country"].text - h[:location] = Bold + venue + Bold + " #{city}, #{country}" + h[:location] = Underline + venue + Underline + " #{Bold + city + Bold}, #{country}" date = e.elements["startDate"].text.split h[:date] = Time.utc(date[3].to_i, date[2], date[1].to_i) h[:desc] = e.elements["description"].text -- cgit v1.2.3