From 74d80daddb2649d9d938dad7825df3867e198e71 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Tue, 4 Sep 2007 10:25:10 +0000 Subject: [PATCH] lastfm plugin: fix help with empty topic --- data/rbot/plugins/lastfm.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 [] events in => show information on events in or near . lastfm [] events by => show information on events by . The number of events 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 -- 2.39.2