summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-02 11:00:37 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-02 11:00:37 +0200
commitdd2b7e138f99ea83c9fa26a8b6e0b3524d8fb814 (patch)
tree7a0f300dd0ba4914a3ebb4b3d64f772c508f41e6 /module/plugins/hooks
parent[Account] Fix https://github.com/pyload/pyload/issues/1922 (diff)
downloadpyload-dd2b7e138f99ea83c9fa26a8b6e0b3524d8fb814.tar.xz
Fix https://github.com/pyload/pyload/issues/1780
Diffstat (limited to 'module/plugins/hooks')
-rw-r--r--module/plugins/hooks/ExternalScripts.py4
-rw-r--r--module/plugins/hooks/XMPPInterface.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/hooks/ExternalScripts.py b/module/plugins/hooks/ExternalScripts.py
index c752ce6ac..32faebbed 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.47"
+ __version__ = "0.48"
__status__ = "testing"
__config__ = [("activated", "bool", "Activated" , True ),
@@ -118,7 +118,7 @@ class ExternalScripts(Addon):
self.info['oldip'] = ip
- def after_reconnect(self, 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
diff --git a/module/plugins/hooks/XMPPInterface.py b/module/plugins/hooks/XMPPInterface.py
index 77e20cdd4..0f8fb377f 100644
--- a/module/plugins/hooks/XMPPInterface.py
+++ b/module/plugins/hooks/XMPPInterface.py
@@ -12,7 +12,7 @@ from module.plugins.hooks.IRCInterface import IRCInterface
class XMPPInterface(IRCInterface, JabberClient):
__name__ = "XMPPInterface"
__type__ = "hook"
- __version__ = "0.12"
+ __version__ = "0.13"
__status__ = "testing"
__config__ = [("jid" , "str" , "Jabber ID" , "user@exmaple-jabber-server.org" ),
@@ -218,7 +218,7 @@ class XMPPInterface(IRCInterface, JabberClient):
self.disconnect()
- def after_reconnect(self, ip):
+ def after_reconnect(self, ip, oldip):
self.connect()