summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks/ExternalScripts.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hooks/ExternalScripts.py')
-rw-r--r--module/plugins/hooks/ExternalScripts.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/module/plugins/hooks/ExternalScripts.py b/module/plugins/hooks/ExternalScripts.py
index 32faebbed..09fe59d0a 100644
--- a/module/plugins/hooks/ExternalScripts.py
+++ b/module/plugins/hooks/ExternalScripts.py
@@ -11,7 +11,7 @@ from module.utils import fs_encode, save_join as fs_join
class ExternalScripts(Addon):
__name__ = "ExternalScripts"
__type__ = "hook"
- __version__ = "0.48"
+ __version__ = "0.49"
__status__ = "testing"
__config__ = [("activated", "bool", "Activated" , True ),
@@ -26,7 +26,6 @@ class ExternalScripts(Addon):
def init(self):
- self.info['oldip'] = None
self.scripts = {}
self.event_list = ["archive_extract_failed", "archive_extracted" ,
@@ -115,13 +114,12 @@ class ExternalScripts(Addon):
for script in self.scripts['before_reconnect']:
args = [ip]
self.call(script, args, lock)
- self.info['oldip'] = ip
def after_reconnect(self, ip, oldip):
lock = self.get_config('lock')
for script in self.scripts['after_reconnect']:
- args = [ip, self.info['oldip']] #@TODO: Use built-in oldip in 0.4.10
+ args = [ip, oldip]
self.call(script, args, lock)