Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/supybotconfig.py
diff options
context:
space:
mode:
authorRichard Darst <rkd@zgib.net>2009-06-27 22:43:21 (GMT)
committer Richard Darst <rkd@zgib.net>2009-06-27 22:43:21 (GMT)
commit4416e68aa3b99c3a612c6471196693bf0ecd81aa (patch)
treefb8cf5344e109a2cae30eced5c15f04cfba46293 /supybotconfig.py
parent66daf4b78879fa9e49c7035cdc4568210423bf7d (diff)
Enable per-channel config via supybot
darcs-hash:20090627224321-82ea9-69b62add26a3d4d5de1f87a0ae4c13d4c167beb0.gz
Diffstat (limited to 'supybotconfig.py')
-rw-r--r--supybotconfig.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/supybotconfig.py b/supybotconfig.py
index 3052915..a989eaf 100644
--- a/supybotconfig.py
+++ b/supybotconfig.py
@@ -20,8 +20,7 @@ class SupybotConfig(object):
"""
if attrname in settable_attributes:
value = self.__C.M._registryValue(attrname,
- #channel=self.__C.M.channel
- )
+ channel=self.__C.M.channel)
if value != '.':
value = value.replace('\\n', '\n')
return value
@@ -61,9 +60,10 @@ if (use_supybot_config.value and
if not isinstance(attr, (str, unicode)):
continue
attr = attr.replace('\n', '\\n')
- # Use this instead: conf.registerChannelValue
- conf.registerGlobalValue(MeetBotConfigGroup, attrname,
- registry.String(attr,""))
+ # For a global value: conf.registerGlobalValue and remove the
+ # channel= option from registryValue call above.
+ conf.registerChannelValue(MeetBotConfigGroup, attrname,
+ registry.String(attr,""))
settable_attributes.append(attrname)
# Here is where the real proxying occurs.