Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/supybotconfig.py
diff options
context:
space:
mode:
Diffstat (limited to 'supybotconfig.py')
-rw-r--r--supybotconfig.py19
1 files changed, 11 insertions, 8 deletions
diff --git a/supybotconfig.py b/supybotconfig.py
index bdbb68f..f846b4d 100644
--- a/supybotconfig.py
+++ b/supybotconfig.py
@@ -127,14 +127,17 @@ def setup_config(OriginalConfig):
continue
attr = getattr(OriginalConfig, attrname)
# Don't configure attributes that aren't strings.
- if not isinstance(attr, (str, unicode)):
- continue
- attr = attr.replace('\n', '\\n')
- # 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)
+ if isinstance(attr, (str, unicode)):
+ attr = attr.replace('\n', '\\n')
+ # 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)
+ if isinstance(attr, bool):
+ conf.registerChannelValue(MeetBotConfigGroup, attrname,
+ registry.Boolean(attr,""))
+ settable_attributes.append(attrname)
# writer_map
# (doing the commented out commands below will erase the previously