]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - data/rbot/plugins/rss.rb
autoop: Add a 'restore' command that will op anybody that would be autooped.
[user/henk/code/ruby/rbot.git] / data / rbot / plugins / rss.rb
index fc3082e8cd4d6d0dd0df5ae5ccc11516f4ffce7a..cabc8272f23ab7e77f24d576554a2beae84ead27 100644 (file)
@@ -175,6 +175,7 @@ module ::RSS
     }.each { |name, chain| def_bang name, chain }
 
     def categories!
+      return nil unless self.respond_to? :categories
       cats = categories.map do |c|
         blank2nil { c.content rescue c rescue nil }
       end.compact