]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
lastfm plugin: support 'lastfm username' as the help suggests
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Fri, 8 Aug 2008 12:13:10 +0000 (14:13 +0200)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Fri, 8 Aug 2008 12:13:10 +0000 (14:13 +0200)
data/rbot/plugins/lastfm.rb

index 6482b543067ce63c90a1c8e6d0f3ffeadcd40469..0c40701c6d98cfe34eb9d38c6967cf3263476533 100644 (file)
@@ -427,8 +427,8 @@ plugin.map 'lastfm who :who', :action => :get_user, :thread => true
 plugin.map 'lastfm who', :action => :get_user, :thread => true
 plugin.map 'lastfm compare :user1 :user2', :action => :tasteometer, :thread => true
 plugin.map 'np', :action => :now_playing, :thread => true
-plugin.map 'lastfm', :action => :now_playing, :thread => true
 plugin.map "lastfm [user] :action [:user]", :thread => true,
   :requirements => { :action =>
     /^(?:events|friends|neighbou?rs|playlists|recent?tracks|top(?:album|artist|tag)s?|weekly(?:album|artist|track)chart|weeklychartlist)$/
 }
+plugin.map "lastfm [:who]", :action => :now_playing, :thread => true