Expose block_ip_range() to plugins.

This commit is contained in:
Andrew Resch 2008-02-17 05:51:07 +00:00
parent c9caab1b4d
commit 2eec78f9fb
1 changed files with 6 additions and 1 deletions

View File

@ -142,3 +142,8 @@ class PluginManager(deluge.pluginmanagerbase.PluginManagerBase,
def get_torrent_list(self): def get_torrent_list(self):
"""Returns a list of torrent_id's in the current session.""" """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)