From f4465d8f5cadca4f21360a097af1107e7330be82 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sun, 26 Dec 2010 14:20:25 +0100 Subject: xmpp reconnect fix --- module/plugins/hooks/XMPPInterface.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'module/plugins') 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. -- cgit v1.2.3