summaryrefslogtreecommitdiff
path: root/data/rbot/plugins
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-01-30 15:53:20 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-01-30 15:53:20 +0000
commitf035093afcd72050d23620f86cb43380164044ce (patch)
treededd2b80ed740859ca484554305a1c73ae733eec /data/rbot/plugins
parent4d6afaede461534ed109abe691ac6485d82ccba3 (diff)
When adding a feed watcher, let it fire instantly so that it can do the initial rss retrieval
Diffstat (limited to 'data/rbot/plugins')
-rw-r--r--data/rbot/plugins/rss.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/data/rbot/plugins/rss.rb b/data/rbot/plugins/rss.rb
index b5a44bd7..13689bf1 100644
--- a/data/rbot/plugins/rss.rb
+++ b/data/rbot/plugins/rss.rb
@@ -388,7 +388,7 @@ class RSSFeedsPlugin < Plugin
status[:oldItems] = []
status[:firstRun] = true
status[:failures] = 0
- @watch[feed.handle] = @bot.timer.add(@bot.config['rss.thread_sleep'], status) {
+ @watch[feed.handle] = @bot.timer.add(0, status) {
debug "watcher for #{feed} started"
oldItems = status[:oldItems]
firstRun = status[:firstRun]
@@ -437,6 +437,7 @@ class RSSFeedsPlugin < Plugin
debug "watcher for #{feed} going to sleep #{seconds} seconds.."
@bot.timer.reschedule(@watch[feed.handle], seconds)
}
+ debug "watcher for #{feed} added"
end
def printFormattedRss(feed, item, opts=nil)