diff options
author | Raine Virta <rane@kapsi.fi> | 2009-03-03 08:45:30 +0200 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2009-03-03 20:52:12 +0100 |
commit | 2fac249c8427e262a0a6654b1fc54a78ec1f8917 (patch) | |
tree | 85e84490265071a5fd00a4476a86e904ff36d0a1 /data/rbot | |
parent | ab0c959bc7305d853e4a52b2a0f25a5fc78f4bfb (diff) |
lastfm: use Utils.comma_list in appropriate places
Diffstat (limited to 'data/rbot')
-rw-r--r-- | data/rbot/plugins/lastfm.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/data/rbot/plugins/lastfm.rb b/data/rbot/plugins/lastfm.rb index 58f0c249..ee9ef5ba 100644 --- a/data/rbot/plugins/lastfm.rb +++ b/data/rbot/plugins/lastfm.rb @@ -271,7 +271,7 @@ class LastFmPlugin < Plugin common_artists = unless artists.empty? _(" and music they have in common includes: %{artists}") % { - :artists => artists.join(", ") } + :artists => Utils.comma_list(artists) } else nil end @@ -590,7 +590,7 @@ class LastFmPlugin < Plugin m.reply reply % { :user => user, :total => friends.size, - :friends => friends.shuffle[0, num].join(", "), + :friends => Utils.comma_list(friends.shuffle[0, num]), :uri => "http://www.last.fm/user/#{CGI.escape user}/friends", :seemore => seemore } @@ -610,7 +610,7 @@ class LastFmPlugin < Plugin m.reply reply % { :user => user, :total => loved.size, - :tracks => loved_prep.join(", "), + :tracks => Utils.comma_list(loved_prep), :uri => "http://www.last.fm/user/#{CGI.escape user}/library/loved", :seemore => seemore } @@ -628,7 +628,7 @@ class LastFmPlugin < Plugin end m.reply reply % { :user => user, - :nbrs => nbrs.shuffle[0, num].join(", "), + :nbrs => Utils.comma_list(nbrs.shuffle[0, num]), :uri => "http://www.last.fm/user/#{CGI.escape user}/neighbours", :seemore => seemore } @@ -659,7 +659,7 @@ class LastFmPlugin < Plugin m.reply _("%{user} hasn't played anything recently") % { :user => user } else m.reply _("%{user} has recently played %{tracks}") % - { :user => user, :tracks => tracks_prep.join(", ") } + { :user => user, :tracks => Utils.comma_list(tracks_prep) } end when :shouts shouts = doc.root.get_elements("shouts/shout") |