mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-17 06:00:42 +01:00
Fixed it to reload Owner and Misc as necessary.
This commit is contained in:
parent
8df0b3888f
commit
b4ffe24b84
@ -50,7 +50,6 @@ import ircutils
|
|||||||
import callbacks
|
import callbacks
|
||||||
|
|
||||||
import Owner
|
import Owner
|
||||||
import Misc
|
|
||||||
|
|
||||||
nicks = ['fatjim','scn','moshez','LordVan','MetaCosm','pythong','fishfart',
|
nicks = ['fatjim','scn','moshez','LordVan','MetaCosm','pythong','fishfart',
|
||||||
'alb','d0rt','jemfinch','StyxAlso','fors','deltab','gd',
|
'alb','d0rt','jemfinch','StyxAlso','fors','deltab','gd',
|
||||||
@ -125,12 +124,12 @@ class PluginTestCase(unittest.TestCase):
|
|||||||
self.irc = irclib.Irc(nick)
|
self.irc = irclib.Irc(nick)
|
||||||
while self.irc.takeMsg():
|
while self.irc.takeMsg():
|
||||||
pass
|
pass
|
||||||
_ = Owner.loadPluginClass(self.irc, Owner)
|
OwnerModule = Owner.loadPluginModule('Owner')
|
||||||
_ = Owner.loadPluginClass(self.irc, Misc)
|
MiscModule = OwnerModule.loadPluginModule('Misc')
|
||||||
|
_ = OwnerModule.loadPluginClass(self.irc, OwnerModule)
|
||||||
|
_ = OwnerModule.loadPluginClass(self.irc, MiscModule)
|
||||||
if isinstance(self.plugins, str):
|
if isinstance(self.plugins, str):
|
||||||
if self.plugins not in ('Owner', 'Misc'):
|
self.plugins = [self.plugins]
|
||||||
module = Owner.loadPluginModule(self.plugins)
|
|
||||||
cb = Owner.loadPluginClass(self.irc, module)
|
|
||||||
else:
|
else:
|
||||||
for name in self.plugins:
|
for name in self.plugins:
|
||||||
if name not in ('Owner', 'Misc'):
|
if name not in ('Owner', 'Misc'):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user