disco on custom hostanme if such thing is defined

This commit is contained in:
Nikos Kouremenos 2005-11-20 12:48:10 +00:00
parent 34db24a69a
commit 2626b888b9
2 changed files with 2 additions and 2 deletions

View File

@ -264,6 +264,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)'''
#FIXME: save srv record result and ask it here
if config.get_per('accounts', account_name, 'use_custom_host'): if config.get_per('accounts', account_name, 'use_custom_host'):
return config.get_per('accounts', account_name, 'custom_host') return config.get_per('accounts', account_name, 'custom_host')
return config.get_per('accounts', account_name, 'hostname') return config.get_per('accounts', account_name, 'hostname')

View File

@ -1646,8 +1646,7 @@ class AccountsWindow:
self.accounts_treeview = self.xml.get_widget('accounts_treeview') self.accounts_treeview = self.xml.get_widget('accounts_treeview')
self.modify_button = self.xml.get_widget('modify_button') self.modify_button = self.xml.get_widget('modify_button')
self.remove_button = self.xml.get_widget('remove_button') self.remove_button = self.xml.get_widget('remove_button')
model = gtk.ListStore(str, str, model = gtk.ListStore(str, str, bool)
bool)
self.accounts_treeview.set_model(model) self.accounts_treeview.set_model(model)
#columns #columns
renderer = gtk.CellRendererText() renderer = gtk.CellRendererText()