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-07-01 22:22:20 (GMT)
committer Richard Darst <rkd@zgib.net>2009-07-01 22:22:20 (GMT)
commit6f333be6204cf2f53046f00ac2aa0599d68fe57b (patch)
treeb40ec625539a15e20856cfa17418a4df8b2f8b4b /supybotconfig.py
parent59defc5c7496f5deeea5a05bf640c0f3060800a1 (diff)
Make writer_map not get reset in supybot-based config
- It would reset every time supybot was started, or `reload MeetBot` was called due to unregistering the value first. darcs-hash:20090701222220-82ea9-e3e16b8fd876ac8b6fb23e6734eabcf61a7d7647.gz
Diffstat (limited to 'supybotconfig.py')
-rw-r--r--supybotconfig.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/supybotconfig.py b/supybotconfig.py
index 6a0b788..129559a 100644
--- a/supybotconfig.py
+++ b/supybotconfig.py
@@ -1,5 +1,7 @@
# Richard Darst, June 2009
+import types
+
import supybot.conf as conf
import supybot.registry as registry
@@ -94,8 +96,10 @@ if (use_supybot_config.value and
settable_attributes.append(attrname)
# writer_map
- if 'writer_map' in MeetBotConfigGroup._children:
- MeetBotConfigGroup.unregister('writer_map')
+ # (doing the commented out commands below will erase the previously
+ # stored value of a config variable)
+ #if 'writer_map' in MeetBotConfigGroup._children:
+ # MeetBotConfigGroup.unregister('writer_map')
conf.registerChannelValue(MeetBotConfigGroup, 'writer_map',
WriterMap(OriginalConfig.writer_map, ""))
settable_attributes.append('writer_map')