we now can't register to the server itself in disco
This commit is contained in:
parent
d6b7766ec0
commit
a3c0cbc3b8
|
@ -2046,17 +2046,20 @@ _('Without a connection, you can not browse available services')).get_response()
|
||||||
self.join_button.set_sensitive(False)
|
self.join_button.set_sensitive(False)
|
||||||
self.register_button.set_sensitive(False)
|
self.register_button.set_sensitive(False)
|
||||||
model, iter = self.services_treeview.get_selection().get_selected()
|
model, iter = self.services_treeview.get_selection().get_selected()
|
||||||
if not iter: return
|
if not iter:
|
||||||
|
return
|
||||||
|
path = model.get_path(iter)
|
||||||
|
if len(path) == 1: # we selected the jabber server
|
||||||
|
return
|
||||||
jid = model.get_value(iter, 1)
|
jid = model.get_value(iter, 1)
|
||||||
node = model.get_value(iter, 2)
|
node = model.get_value(iter, 2)
|
||||||
if self.agent_infos[jid + node].has_key('features'):
|
if self.agent_infos[jid + node].has_key('features'):
|
||||||
if common.xmpp.NS_REGISTER in self.agent_infos[jid + node] \
|
if common.xmpp.NS_REGISTER in self.agent_infos[jid + node] \
|
||||||
['features']:
|
['features']:
|
||||||
self.register_button.set_sensitive(True)
|
self.register_button.set_sensitive(True)
|
||||||
if self.agent_infos[jid + node].has_key('identities'):
|
if self.agent_infos[jid + node].has_key('identities') and \
|
||||||
if len(self.agent_infos[jid + node]['identities']):
|
len(self.agent_infos[jid + node]['identities']):
|
||||||
if self.agent_infos[jid + node]['identities'][0].has_key(
|
if self.agent_infos[jid + node]['identities'][0].has_key('category'):
|
||||||
'category'):
|
|
||||||
if self.agent_infos[jid + node]['identities'][0]['category'] == \
|
if self.agent_infos[jid + node]['identities'][0]['category'] == \
|
||||||
'conference':
|
'conference':
|
||||||
self.join_button.set_sensitive(True)
|
self.join_button.set_sensitive(True)
|
||||||
|
|
Loading…
Reference in New Issue