summaryrefslogtreecommitdiff
path: root/data/rbot
diff options
context:
space:
mode:
Diffstat (limited to 'data/rbot')
-rw-r--r--data/rbot/plugins/rss.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/data/rbot/plugins/rss.rb b/data/rbot/plugins/rss.rb
index bec03add..353e1675 100644
--- a/data/rbot/plugins/rss.rb
+++ b/data/rbot/plugins/rss.rb
@@ -8,11 +8,11 @@ require 'rss/parser'
require 'rss/1.0'
require 'rss/2.0'
require 'rss/dublincore'
-begin
- # require 'rss/dublincore/2.0'
-rescue
- warning "Unable to load RSS libraries, RSS plugin functionality crippled"
-end
+# begin
+# require 'rss/dublincore/2.0'
+# rescue
+# warning "Unable to load RSS libraries, RSS plugin functionality crippled"
+# end
class ::String
def shorten(limit)
@@ -168,7 +168,7 @@ class RSSFeedsPlugin < Plugin
end
if e
debug e.inspect
- debug e.backtrace.join("\n") if e.class >= Exception
+ debug e.backtrace.join("\n") if e.respond_to?(:backtrace)
end
end
@@ -363,7 +363,7 @@ class RSSFeedsPlugin < Plugin
title, newItems = fetchRss(feed)
}
unless newItems
- m.reply "no items in feed"
+ debug "no items in feed #{feed}"
break
end
debug "Checking if new items are available for #{feed}"