Skip to content
Snippets Groups Projects
Commit a112c453 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

for the changement ressource -> resource: upgrade the config file

parent a2ca03d8
No related branches found
No related tags found
No related merge requests found
......@@ -511,7 +511,15 @@ class GajimCore:
hostname = self.cfgParser.tab[account]["hostname"]
name = self.cfgParser.tab[account]["name"]
password = self.passwords[account]
resource = self.cfgParser.tab[account]["resource"]
if not self.cfgParser.tab[account].has_key('resource']:
if not self.cfgParser.tab[account].has_key('ressource']:
resource = 'Gajim'
else:
resource = self.cfgParser.tab[account]['ressource']
self.cfgParser.tab[account]['resource'] = resource
del self.cfgParser.tab[account]['ressource']
else:
resource = self.cfgParser.tab[account]['resource']
#create connexion if it doesn't already existe
con = None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment