aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2008-06-06 01:41:34 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2008-06-06 01:41:34 +0000
commit4c873c7f411ecae62311bbe548465260aeec9842 (patch)
tree285b80b99e576bef49a48a13e3f854d3bc952a65
parentFactor out defaults access. (diff)
downloadrbot-bugzilla-4c873c7f411ecae62311bbe548465260aeec9842.tar.gz
rbot-bugzilla-4c873c7f411ecae62311bbe548465260aeec9842.tar.bz2
rbot-bugzilla-4c873c7f411ecae62311bbe548465260aeec9842.zip
Remove duplicate default-setting code.
-rw-r--r--bugzilla.rb11
1 files changed, 1 insertions, 10 deletions
diff --git a/bugzilla.rb b/bugzilla.rb
index a0d4d3d..334ab08 100644
--- a/bugzilla.rb
+++ b/bugzilla.rb
@@ -432,16 +432,7 @@ class BugzillaPlugin < Plugin
# This function will calculate the channel default.
def join(m)
return unless m.address?
-
- @registry["channel_defaults"].each do |chanrexp, defaults|
- if m.replyto.to_s =~ Regexp.new(chanrexp)
- @defaults[m.replyto] = {
- :eavesdrop => defaults[:eavesdrop],
- :zilla => @zillas[defaults[:zilla]]
- }
- break
- end
- end
+ channel_defaults_reload(m)
end
# Answer to a bug information request