From 4ceafceede299d77acb097331d4379fd08048c8c Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Mon, 26 Apr 2004 01:06:20 +0000 Subject: [PATCH] go offline when we close a plugin --- core/core.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/core.py b/core/core.py index 45bf166be..26fda2fbb 100644 --- a/core/core.py +++ b/core/core.py @@ -247,10 +247,10 @@ class GajimCore: con = None #('QUIT', account, ()) if ev[0] == 'QUIT': -# for con in self.connexions.keys(): -# if self.connected[a] == 1: -# self.connected[a] = 0 -# con.disconnect() + for con in self.connexions.keys(): + if self.connected[self.connexions[con]] == 1: + self.connected[self.connexions[con]] = 0 + con.disconnect() self.hub.sendPlugin('QUIT', None, ()) return #('ASK_CONFIG', account, (who_ask, section, default_config))