diff options
Diffstat (limited to 'bugzilla.rb')
-rw-r--r-- | bugzilla.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bugzilla.rb b/bugzilla.rb index 8d5736a..5404bac 100644 --- a/bugzilla.rb +++ b/bugzilla.rb @@ -56,6 +56,10 @@ OPTIONS_INPUT_1 = /^(?:#{_OPTIONS_INPUT})$/ OPTIONS_INPUT_N = /^(?:#{_OPTIONS_INPUT})(?:,(?:#{_OPTIONS_INPUT}))*$/ class BugzillaPlugin < Plugin + Config.register Config::IntegerValue.new('bugzilla.announce_interval', + :requires_rescan => true, + :default => 300, + :desc => "Timer interval for announcements") # Exception class to raise when requesting information about an # unknown zilla instance. @@ -413,7 +417,7 @@ class BugzillaPlugin < Plugin @registry["channel_defaults"] = Hash.new end - @polling_timer = @bot.timer.add(300) { + @polling_timer = @bot.timer.add(@bot.config['bugzilla.announce_interval']) { poll_zillas } end |