aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2008-06-06 01:52:25 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2008-06-06 01:52:25 +0000
commit7d43ee71cee7abebf437e21cd46604971b674b58 (patch)
tree056f96a6dd77a410b16137751c142e0b956093ac
parentFactor out dupe code in bug func. (diff)
downloadrbot-bugzilla-7d43ee71cee7abebf437e21cd46604971b674b58.tar.gz
rbot-bugzilla-7d43ee71cee7abebf437e21cd46604971b674b58.tar.bz2
rbot-bugzilla-7d43ee71cee7abebf437e21cd46604971b674b58.zip
Use channel name not object for the defaults array.
-rw-r--r--bugzilla.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/bugzilla.rb b/bugzilla.rb
index 28313bc..2171015 100644
--- a/bugzilla.rb
+++ b/bugzilla.rb
@@ -644,7 +644,7 @@ class BugzillaPlugin < Plugin
if chanrexp =~ /^\/.*\/$/
chanrexp = Regexp.new(chanrexp[1..-2])
@bot.server.channels.each do |chan|
- _channel_defaults_reload_set(chan, defaults) if chan.to_s =~ chanrexp
+ _channel_defaults_reload_set(chan.to_s, defaults) if chan.to_s =~ chanrexp
end
else
_channel_defaults_reload_set(chanrexp, defaults)