From 1e9373e223fe142fb412f268d33e993a09d4d818 Mon Sep 17 00:00:00 2001 From: dmitry kim Date: Fri, 28 Mar 2008 02:02:53 +0300 Subject: + rss.rb: optional :delay param to '!rss rewatch' --- data/rbot/plugins/rss.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'data/rbot/plugins') diff --git a/data/rbot/plugins/rss.rb b/data/rbot/plugins/rss.rb index bc4fd369..1d141f3b 100644 --- a/data/rbot/plugins/rss.rb +++ b/data/rbot/plugins/rss.rb @@ -803,7 +803,7 @@ class RSSFeedsPlugin < Plugin if params and handle = params[:handle] feed = @feeds.fetch(handle.downcase, nil) if feed - @bot.timer.reschedule(@watch[feed.handle], 0) + @bot.timer.reschedule(@watch[feed.handle], (params[:delay] || 0).to_f) m.okay if m else m.reply _("no such feed %{handle}") % { :handle => handle } if m @@ -1190,7 +1190,7 @@ plugin.map 'rss unwatch :handle [in :chan]', :action => 'unwatch_rss' plugin.map 'rss rmwatch :handle [in :chan]', :action => 'unwatch_rss' -plugin.map 'rss rewatch [:handle]', +plugin.map 'rss rewatch [:handle] [:delay]', :action => 'rewatch_rss' plugin.map 'rss types', :action => 'rss_types' -- cgit v1.2.3