]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
rss plugin: don't proceed if the specified feed doesn't exist
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Thu, 23 Aug 2007 22:13:08 +0000 (22:13 +0000)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Thu, 23 Aug 2007 22:13:08 +0000 (22:13 +0000)
data/rbot/plugins/rss.rb

index ed37965036ff4abfadd6fe60fba50bb4ab32f671..f30bc006e93a0d97105525d633c714697287b882 100644 (file)
@@ -575,6 +575,7 @@ class RSSFeedsPlugin < Plugin
 \r
   def del_rss(m, params, pass=false)\r
     feed = unwatch_rss(m, params, true)\r
+    return unless feed\r
     if feed.watched?\r
       m.reply "someone else is watching #{feed.handle}, I won't remove it from my list"\r
       return\r