We should automatically load plugins, even when deprecated.

This commit is contained in:
Jeremy Fincher 2004-10-28 17:09:03 +00:00
parent 60966044b1
commit f9e0a5e03f

View File

@ -100,7 +100,7 @@ def loadPluginModule(name, ignoreDeprecation=False):
log.warning('Deprecated plugin loaded: %s', name) log.warning('Deprecated plugin loaded: %s', name)
else: else:
raise Deprecated, 'Attempted to load deprecated plugin %s' % \ raise Deprecated, 'Attempted to load deprecated plugin %s' % \
utils.quoted(name) utils.quoted(name)
if module.__name__ in sys.modules: if module.__name__ in sys.modules:
sys.modules[module.__name__] = module sys.modules[module.__name__] = module
linecache.checkcache() linecache.checkcache()
@ -329,7 +329,7 @@ class Owner(privmsgs.CapabilityCheckingPrivmsg):
# This is debug because each log logs its beginning. # This is debug because each log logs its beginning.
self.log.debug('Loading %s.' % name) self.log.debug('Loading %s.' % name)
try: try:
m = loadPluginModule(name) m = loadPluginModule(name, ignoreDeprecation=True)
loadPluginClass(irc, m) loadPluginClass(irc, m)
except callbacks.Error, e: except callbacks.Error, e:
# This is just an error message. # This is just an error message.