enable block menu if server supports only XEP-0191

This commit is contained in:
Yann Leboulanger 2013-04-05 20:59:47 +02:00
parent a38b779e9e
commit 1886298d30
1 changed files with 2 additions and 2 deletions

View File

@ -469,8 +469,8 @@ control=None, gc_contact=None, is_anonymous=True):
execute_command_menuitem, send_custom_status_menuitem): execute_command_menuitem, send_custom_status_menuitem):
widget.set_sensitive(False) widget.set_sensitive(False)
if gajim.connections[account] and gajim.connections[account].\ if gajim.connections[account] and (gajim.connections[account].\
privacy_rules_supported: privacy_rules_supported or gajim.connections[account].blocking_supported):
if helpers.jid_is_blocked(account, jid): if helpers.jid_is_blocked(account, jid):
block_menuitem.set_no_show_all(True) block_menuitem.set_no_show_all(True)
block_menuitem.hide() block_menuitem.hide()