git://git.furryclan.net
/
furrycat
/
catbot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
559ba55
)
Ensure admin plugin has access to self.plugins after plugin reload.
author
CMDR furrycat
<elite@furrycat.net>
Mon, 24 Dec 2018 10:21:50 +0000
(10:21 +0000)
committer
CMDR furrycat
<elite@furrycat.net>
Mon, 24 Dec 2018 10:21:50 +0000
(10:21 +0000)
app.py
patch
|
blob
|
history
diff --git
a/app.py
b/app.py
index
c059c76
..
0a1d628
100644
(file)
--- a/
app.py
+++ b/
app.py
@@
-232,6
+232,9
@@
async def builtin_commands(message, command, raw):
plugins.refresh()
plugins.log_level(log.getEffectiveLevel())
plugins.set_client(client)
+ if 'admin' in plugins.plugins():
+ plugins.get_plugin('admin').db = db
+ plugins.get_plugin('admin').plugins = plugins
return True
return False
all_plugins = list(plugins.plugins())