plit() != split(' ')

This commit is contained in:
Yann Leboulanger 2005-03-06 01:12:28 +00:00
parent 75cdeb819f
commit 5c9eb3a330
1 changed files with 2 additions and 2 deletions

View File

@ -322,7 +322,7 @@ class GajimCore:
if self.mode == 'server': if self.mode == 'server':
self.accounts = {} self.accounts = {}
if self.cfgParser.tab['Profile'].has_key('accounts'): if self.cfgParser.tab['Profile'].has_key('accounts'):
accts = self.cfgParser.tab['Profile']['accounts'].split() accts = self.cfgParser.tab['Profile']['accounts'].split(' ')
if accts == ['']: if accts == ['']:
accts = [] accts = []
for a in accts: for a in accts:
@ -663,7 +663,7 @@ class GajimCore:
elif ev[0] == 'CONFIG': elif ev[0] == 'CONFIG':
if ev[2][0] == 'accounts': if ev[2][0] == 'accounts':
#Remove all old accounts #Remove all old accounts
accts = self.cfgParser.tab['Profile']['accounts'].split() accts = self.cfgParser.tab['Profile']['accounts'].split(' ')
if accts == ['']: if accts == ['']:
accts = [] accts = []
for a in accts: for a in accts: