summaryrefslogtreecommitdiff
path: root/data/rbot/plugins
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-04-06 09:15:41 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-04-06 09:15:41 +0000
commit809d3eb28fe8176043696483b26f1ddbcf341cf6 (patch)
treec5ad13d88e7cb58865c80814266b0e7586e2e514 /data/rbot/plugins
parent796d473d40b3a7912a4cef4134a9f96de92e19c2 (diff)
lastfm plugin: overlong artisti descriptions are truncated; artist events can be searched without prefix
Diffstat (limited to 'data/rbot/plugins')
-rw-r--r--data/rbot/plugins/lastfm.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/data/rbot/plugins/lastfm.rb b/data/rbot/plugins/lastfm.rb
index 358137d2..49ef9fed 100644
--- a/data/rbot/plugins/lastfm.rb
+++ b/data/rbot/plugins/lastfm.rb
@@ -137,7 +137,7 @@ class LastFmPlugin < Plugin
wiki = $1.ircify_html
end
- m.reply "%s : %s\n%s" % [title, url, wiki]
+ m.reply "%s : %s\n%s" % [title, url, wiki], :overlong => :truncate
else
m.reply "no data found on #{artist}"
return
@@ -176,6 +176,7 @@ end
plugin = LastFmPlugin.new
plugin.map 'lastfm event[s] in *location', :action => :find_event
plugin.map 'lastfm event[s] by *who', :action => :find_event
+plugin.map 'lastfm event[s] [for] *who', :action => :find_event
plugin.map 'lastfm artist *who', :action => :find_artist
plugin.map 'lastfm group *who', :action => :find_artist
plugin.map 'lastfm track *dunno', :action => :find_track