diff options
author | Yann Leboulanger <asterix@lagaule.org> | 2004-04-26 05:06:20 +0400 |
---|---|---|
committer | Yann Leboulanger <asterix@lagaule.org> | 2004-04-26 05:06:20 +0400 |
commit | 4ceafceede299d77acb097331d4379fd08048c8c (patch) | |
tree | b5cf97d57dca80aec241a2987f05d410203d0645 /core | |
parent | d1eebe90574fa24521e4d051aa8978efc20e510d (diff) |
go offline when we close a plugin
Diffstat (limited to 'core')
-rw-r--r-- | core/core.py | 8 |
1 files 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)) |