summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-12-26 14:20:25 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-12-26 14:20:25 +0100
commitf4465d8f5cadca4f21360a097af1107e7330be82 (patch)
tree808e92599289154be70e865b472aba69d820ba80 /module/plugins/hooks
parentmore xmpp debug (diff)
downloadpyload-f4465d8f5cadca4f21360a097af1107e7330be82.tar.xz
xmpp reconnect fix
Diffstat (limited to 'module/plugins/hooks')
-rw-r--r--module/plugins/hooks/XMPPInterface.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/module/plugins/hooks/XMPPInterface.py b/module/plugins/hooks/XMPPInterface.py
index dd0cd2f28..6c6141a73 100644
--- a/module/plugins/hooks/XMPPInterface.py
+++ b/module/plugins/hooks/XMPPInterface.py
@@ -190,7 +190,12 @@ class XMPPInterface(IRCInterface, JabberClient):
stream = self.get_stream()
stream.send(m)
-
+
+ def beforeReconnecting(self, ip):
+ self.disconnect()
+
+ def afterReconnecting(self, ip):
+ self.connect()
class VersionHandler(object):
"""Provides handler for a version query.