summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-04-08 21:32:14 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-04-08 21:32:14 +0000
commit8312f018d2984b38c6d75e60b0fc56c56994b525 (patch)
tree700103193bfd06436a3b445d2f15e3f65fdc124a
parentc16c0bb386c322c580aa70b4e6bb20252a235f9e (diff)
rss plugin: watching now relies on an ID built from title, link and description to check if any item is new. Optionally, the description can be ignored (rss.show_updated = false). Use Set to store IDs, and require 'set' in Utils because other plugins might be optimized to use it
-rw-r--r--lib/rbot/core/utils/utils.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/rbot/core/utils/utils.rb b/lib/rbot/core/utils/utils.rb
index 65148936..694e1c28 100644
--- a/lib/rbot/core/utils/utils.rb
+++ b/lib/rbot/core/utils/utils.rb
@@ -15,6 +15,7 @@
require 'net/http'
require 'uri'
require 'tempfile'
+require 'set'
begin
require 'htmlentities'