mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
Added a classModule attribute to plugins to have easy access to it (the new plugin format made that significantly harder for us; this is an easy workaround).
This commit is contained in:
parent
ed0b91c3df
commit
2a75f4b83d
@ -1068,6 +1068,7 @@ class PluginMixin(irclib.IrcCallback):
|
||||
alwaysCall = ()
|
||||
threaded = False
|
||||
noIgnore = False
|
||||
classModule = None
|
||||
Proxy = IrcObjectProxy
|
||||
def __init__(self, irc):
|
||||
self.__parent = super(PluginMixin, self)
|
||||
|
@ -94,6 +94,7 @@ def loadPluginClass(irc, module, register=None):
|
||||
'a bug with us about this error.'
|
||||
else:
|
||||
raise
|
||||
cb.classModule = module
|
||||
plugin = cb.name()
|
||||
public = True
|
||||
if hasattr(cb, 'public'):
|
||||
|
Loading…
Reference in New Issue
Block a user