summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authordmitry kim <jason@nichego.net>2008-03-28 02:02:53 +0300
committerdmitry kim <jason@nichego.net>2008-03-28 02:02:53 +0300
commit1e9373e223fe142fb412f268d33e993a09d4d818 (patch)
tree0b6f2ac8637bf9f711245a0c7fe5860337e4d175 /data
parent33f1c8ddc1f4c9f897f3b194a44faa1834f61566 (diff)
+ rss.rb: optional :delay param to '!rss rewatch'
Diffstat (limited to 'data')
-rw-r--r--data/rbot/plugins/rss.rb4
1 files changed, 2 insertions, 2 deletions
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'