Added Config to the default list of plugins loaded.

This commit is contained in:
Jeremy Fincher 2004-01-19 20:23:03 +00:00
parent dc87ed26aa
commit 4df10116ed

View File

@ -134,13 +134,15 @@ class PluginTestCase(unittest.TestCase):
pass pass
#OwnerModule = Owner.loadPluginModule('Owner') #OwnerModule = Owner.loadPluginModule('Owner')
MiscModule = Owner.loadPluginModule('Misc') MiscModule = Owner.loadPluginModule('Misc')
ConfigModule = Owner.loadPluginModule('Config')
_ = Owner.loadPluginClass(self.irc, Owner) _ = Owner.loadPluginClass(self.irc, Owner)
_ = Owner.loadPluginClass(self.irc, MiscModule) _ = Owner.loadPluginClass(self.irc, MiscModule)
_ = Owner.loadPluginClass(self.irc, ConfigModule)
if isinstance(self.plugins, str): if isinstance(self.plugins, str):
self.plugins = [self.plugins] self.plugins = [self.plugins]
else: else:
for name in self.plugins: for name in self.plugins:
if name not in ('Owner', 'Misc'): if name not in ('Owner', 'Misc', 'Config'):
try: try:
module = Owner.loadPluginModule(name) module = Owner.loadPluginModule(name)
except Owner.Deprecated, e: except Owner.Deprecated, e: