we can now force to not use SASL for each account in advanced configuration editor

This commit is contained in:
Yann Leboulanger 2005-05-24 18:19:53 +00:00
parent e3ddf04b9b
commit 8a7a399288
2 changed files with 3 additions and 1 deletions

View File

@ -115,6 +115,7 @@ class Config:
'keyid': [ opt_str, '' ],
'keyname': [ opt_str, '' ],
'usetls': [ opt_bool, False ],
'force_nonSASL': [ opt_bool, False ],
'savegpgpass': [ opt_bool, False ],
'gpgpassword': [ opt_str, '' ],
'sync_with_global_status': [ opt_bool, True ],

View File

@ -565,7 +565,8 @@ class Connection:
gajim.log.debug('Connected to server')
try:
auth = con.auth(name, self.password, resource) #FIXME: blocking
auth = con.auth(name, self.password, resource,
not gajim.config.get_per('accounts', self.name, 'force_nonSASL')) #FIXME: blocking
except IOError: #probably a timeout
self.connected = 0
self.dispatch('STATUS', 'offline')