From 5ed244cad6c0b11d92e7545f2c0f4d3dc76bc237 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Sat, 19 Jul 2008 22:48:34 +0000 Subject: [PATCH] Reset IP Filter when disabling blocklist plugin --- deluge/plugins/blocklist/blocklist/core.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/deluge/plugins/blocklist/blocklist/core.py b/deluge/plugins/blocklist/blocklist/core.py index 2549c7f93..caefb8119 100644 --- a/deluge/plugins/blocklist/blocklist/core.py +++ b/deluge/plugins/blocklist/blocklist/core.py @@ -84,9 +84,11 @@ class Core(CorePluginBase): self.download_blocklist, True) def disable(self): - log.debug('Blocklist: Plugin disabled') + log.debug("Reset IP Filter..") + component.get("Core").export_reset_ip_filter() self.config.save() - + log.debug('Blocklist: Plugin disabled') + def update(self): pass