summaryrefslogtreecommitdiff
path: root/data/rbot
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-09-04 10:25:10 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-09-04 10:25:10 +0000
commit74d80daddb2649d9d938dad7825df3867e198e71 (patch)
treee74c4572b0ed91e661f7ff490de8e9ed45ecb3ba /data/rbot
parente2f8ecd2aead7a4d3b226ab9a7884eed7e8552eb (diff)
lastfm plugin: fix help with empty topic
Diffstat (limited to 'data/rbot')
-rw-r--r--data/rbot/plugins/lastfm.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/rbot/plugins/lastfm.rb b/data/rbot/plugins/lastfm.rb
index 9c6e97b9..c1e85da4 100644
--- a/data/rbot/plugins/lastfm.rb
+++ b/data/rbot/plugins/lastfm.rb
@@ -48,7 +48,7 @@ class LastFmPlugin < Plugin
LASTFM = "http://www.last.fm"
def help(plugin, topic="")
- case topic.intern
+ case (topic.intern rescue nil)
when :event, :events
"lastfm [<num>] events in <location> => show information on events in or near <location>. lastfm [<num>] events by <artist/group> => show information on events by <artist/group>. The number of events <num> that can be displayed is optional, defaults to #{@bot.config['lastfm.default_events']} and cannot be higher than #{@bot.config['lastfm.max_events']}"
when :artist, :group