remove useless code

This commit is contained in:
Yann Leboulanger 2009-02-08 22:37:39 +00:00
parent 894dbc3e73
commit 6f951d20d0
1 changed files with 1 additions and 4 deletions

View File

@ -519,10 +519,7 @@ class Connection(ConnectionHandlers):
if len(self._hosts):
# No config option exist when creating a new account
if self.last_connection_type:
if self.last_connection_type == 'plain':
self._connection_types = ['plain']
else:
self._connection_types = [self.last_connection_type]
self._connection_types = [self.last_connection_type]
elif self.name in gajim.config.get_per('accounts'):
self._connection_types = gajim.config.get_per('accounts', self.name,
'connection_types').split()