aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2008-06-04 07:49:26 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2008-06-04 07:49:26 +0000
commit1c9b7e2d4c1c86c78cab0e3c140a651d7340ec56 (patch)
tree123184bbedec73c5d746a4bd1b86821c9929be3d
parentUseful output. (diff)
downloadrbot-bugzilla-1c9b7e2d4c1c86c78cab0e3c140a651d7340ec56.tar.gz
rbot-bugzilla-1c9b7e2d4c1c86c78cab0e3c140a651d7340ec56.tar.bz2
rbot-bugzilla-1c9b7e2d4c1c86c78cab0e3c140a651d7340ec56.zip
Dump support.
-rw-r--r--bugzilla.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/bugzilla.rb b/bugzilla.rb
index 3f48f2a..8ebbd42 100644
--- a/bugzilla.rb
+++ b/bugzilla.rb
@@ -664,6 +664,14 @@ class BugzillaPlugin < Plugin
end
end
+ def channel_defaults_dump(m, params)
+ begin
+ m.reply @defaults.inspect
+ rescue ::Exception => e
+ m.reply e.message
+ end
+ end
+
# Adds announcement for bugs on the given zilla to the channel
#
# When this function is called, the given zilla is added to the list
@@ -842,6 +850,10 @@ plugin.map 'zilla default show :channel',
},
:auth_path => 'view'
+plugin.map 'zilla default dump',
+ :action => 'channel_defaults_dump',
+ :auth_path => 'view'
+
plugin.map 'zilla announcement add :zilla :channel',
:action => 'channel_announcement_add',
:requirements => {