mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
Added Config to the default list of plugins loaded.
This commit is contained in:
parent
dc87ed26aa
commit
4df10116ed
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user