custom_host can have a value even if we don't use it, and it should not be shown
This commit is contained in:
parent
74cc23031c
commit
c3b701ca8e
|
@ -201,8 +201,7 @@ def get_jid_from_account(account_name):
|
||||||
|
|
||||||
def get_hostname_from_account(account_name):
|
def get_hostname_from_account(account_name):
|
||||||
'''returns hostname (if custom hostname is used, that is returned)'''
|
'''returns hostname (if custom hostname is used, that is returned)'''
|
||||||
hostname = config.get_per('accounts', account_name, 'custom_host')
|
if config.get_per('accounts', account_name, 'use_custom_host'):
|
||||||
if hostname == '':
|
return config.get_per('accounts', account_name, 'custom_host')
|
||||||
hostname = config.get_per('accounts', account_name, 'hostname')
|
return config.get_per('accounts', account_name, 'hostname')
|
||||||
return hostname
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue