We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent efbbe57 commit 757e958Copy full SHA for 757e958
1 file changed
cloudbot/plugin.py
@@ -293,12 +293,6 @@ def unload_plugin(self, path):
293
"""
294
path = Path(path)
295
file_path = path.resolve()
296
- plugin_path = file_path.relative_to(self.bot.base_dir)
297
-
298
- title = '.'.join(plugin_path.parts[1:]).rsplit('.', 1)[0]
299
- if "disabled_plugins" in self.bot.config and title in self.bot.config['disabled_plugins']:
300
- # this plugin hasn't been loaded, so no need to unload it
301
- return False
302
303
# make sure this plugin is actually loaded
304
if str(file_path) not in self.plugins:
0 commit comments