await the now async remove_plugin

This commit is contained in:
Lonami 2019-04-30 20:44:08 +02:00
parent 93cbb44459
commit 168ee165b9
1 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ async def load_reload(event):
try: try:
if shortname in borg._plugins: if shortname in borg._plugins:
borg.remove_plugin(shortname) await borg.remove_plugin(shortname)
borg.load_plugin(shortname) borg.load_plugin(shortname)
msg = await event.respond( msg = await event.respond(
@ -39,7 +39,7 @@ async def remove(event):
if shortname == "_core": if shortname == "_core":
msg = await event.respond(f"Not removing {shortname}") msg = await event.respond(f"Not removing {shortname}")
elif shortname in borg._plugins: elif shortname in borg._plugins:
borg.remove_plugin(shortname) await borg.remove_plugin(shortname)
msg = await event.respond(f"Removed plugin {shortname}") msg = await event.respond(f"Removed plugin {shortname}")
else: else:
msg = await event.respond(f"Plugin {shortname} is not loaded") msg = await event.respond(f"Plugin {shortname} is not loaded")