From a232afc9558bf84502f3c5bfdd067bd301c5644e Mon Sep 17 00:00:00 2001 From: Richard Darst Date: Fri, 31 Jul 2009 18:02:53 +0000 Subject: Improve semantics of setting the supybot config proxy - This no longer mucks with global variables as badly as before... darcs-hash:20090731180253-82ea9-c7a6c0a923353a81e3b8be45e366eb8fe1b3d8ee.gz --- (limited to 'plugin.py') diff --git a/plugin.py b/plugin.py index f76eb6a..59f5657 100644 --- a/plugin.py +++ b/plugin.py @@ -42,6 +42,10 @@ import supybotconfig meeting = reload(meeting) supybotconfig = reload(supybotconfig) +if supybotconfig.is_supybotconfig_enabled(meeting.Config): + supybotconfig.setup_config(meeting.Config) + meeting.Config = supybotconfig.get_config_proxy(meeting.Config) + # By doing this, we can not lose all of our meetings across plugin # reloads. But, of course, you can't change the source too # drastically if you do that! -- cgit v0.9.1