diff options
Diffstat (limited to 'data/rbot/plugins/lastfm.rb')
-rw-r--r-- | data/rbot/plugins/lastfm.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/data/rbot/plugins/lastfm.rb b/data/rbot/plugins/lastfm.rb index 1b7203bf..11154069 100644 --- a/data/rbot/plugins/lastfm.rb +++ b/data/rbot/plugins/lastfm.rb @@ -184,6 +184,10 @@ class LastFmPlugin < Plugin emptymsg = _("no events found in %{location}") % {:location => location.to_s} elsif venue venues = search_venue_by(:name => venue.to_s, :limit => 1) + if venues.empty? + m.reply _("no venue found matching %{venue}") % {:venue => venue.to_s} + return + end venue = venues.first uri = "#{APIURL}method=venue.getevents&venue=#{venue.id}" elsif artist |