Ensure we set the client when reloading a plugin which failed to parse on startup.
authorCMDR furrycat <elite@furrycat.net>
Sun, 11 Feb 2018 09:33:46 +0000 (09:33 +0000)
committerCMDR furrycat <elite@furrycat.net>
Sun, 11 Feb 2018 09:33:46 +0000 (09:33 +0000)
app.py

diff --git a/app.py b/app.py
index c97f2e8..c059c76 100644 (file)
--- a/app.py
+++ b/app.py
@@ -231,6 +231,7 @@ async def builtin_commands(message, command, raw):
       if args[1] == 'reload':
         plugins.refresh()
         plugins.log_level(log.getEffectiveLevel())
+        plugins.set_client(client)
         return True
       return False
     all_plugins = list(plugins.plugins())