diff options
author | Raine Virta <rane@kapsi.fi> | 2010-04-20 20:36:25 +0300 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2010-08-18 10:41:02 +0200 |
commit | 301f9b65c8c5d3c91c7af9892870b01977e2c1bb (patch) | |
tree | 80d07b6ccd6d80d493ff36fd9872f98c35764e7e /data/rbot | |
parent | d372ec5babdbf5e6a9c49b21d16bcae74d0ff01c (diff) |
lastfm: require spotify plugin to be enabled for spotify link info
Diffstat (limited to 'data/rbot')
-rw-r--r-- | data/rbot/plugins/lastfm.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/data/rbot/plugins/lastfm.rb b/data/rbot/plugins/lastfm.rb index 57cf3ec1..ad013bba 100644 --- a/data/rbot/plugins/lastfm.rb +++ b/data/rbot/plugins/lastfm.rb @@ -387,7 +387,7 @@ class LastFmPlugin < Plugin reply = _("%{u} %{v} \"%{t}\" by %{bold}%{a}%{bold}%{b} %{p};") % {:u => user, :v => verb, :t => track, :a => artist, :b => album, :p => ago, :bold => Bold} end - if Object.const_defined?('Spotify') + if @bot.plugins['spotify'] && Object.const_defined?('Spotify') if track = Spotify.search(:track, "#{artist} #{track}") reply << _(" [%{u}%{url}%{u}]") % {:u => Underline, :url => track.url} end |