From 2eec78f9fbd21422e3c00c1f61fc0183ee148f24 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Sun, 17 Feb 2008 05:51:07 +0000 Subject: [PATCH] Expose block_ip_range() to plugins. --- deluge/core/pluginmanager.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/deluge/core/pluginmanager.py b/deluge/core/pluginmanager.py index eb69f4e18..63e3f592f 100644 --- a/deluge/core/pluginmanager.py +++ b/deluge/core/pluginmanager.py @@ -141,4 +141,9 @@ class PluginManager(deluge.pluginmanagerbase.PluginManagerBase, def get_torrent_list(self): """Returns a list of torrent_id's in the current session.""" - return component.get("TorrentManager").get_torrent_list() + return component.get("TorrentManager").get_torrent_list() + + def block_ip_range(self, range): + """Blocks the ip range in the core""" + return self.core.export_block_ip_range(range) +