summaryrefslogtreecommitdiff
path: root/data/rbot/plugins/rss.rb
diff options
context:
space:
mode:
Diffstat (limited to 'data/rbot/plugins/rss.rb')
-rw-r--r--data/rbot/plugins/rss.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/data/rbot/plugins/rss.rb b/data/rbot/plugins/rss.rb
index 22a6dc18..08b2c775 100644
--- a/data/rbot/plugins/rss.rb
+++ b/data/rbot/plugins/rss.rb
@@ -341,7 +341,10 @@ class RSSFeedsPlugin < Plugin
def change_rss(m, params)
handle = params[:handle].downcase
feed = @feeds.fetch(handle, nil)
- return m.reply "No such feed with handle #{handle}" unless feed
+ unless feed
+ m.reply "No such feed with handle #{handle}"
+ return
+ end
case params[:what].intern
when :handle
new = params[:new].downcase