This commit is contained in:
Luke Rogers 2014-03-25 14:46:34 +13:00
parent cbf72f9a78
commit fe92a78a89
3 changed files with 23 additions and 55 deletions

View file

@ -39,7 +39,6 @@ class PluginLoader(object):
self.observer.start()
self.load_all()
pprint(bot.plugins)
def stop(self):
"""shuts down the plugin reloader"""
@ -88,7 +87,6 @@ class PluginLoader(object):
if hasattr(obj, '_hook'): # check for magic
if obj._thread:
self.bot.threads[obj] = main.Handler(self.bot, obj)
for plug_type, data in obj._hook:
# add plugin to the plugin list
self.bot.plugins[plug_type] += [data]