From 1886298d301e4b4423ef5d44a43ec9f94cb76705 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Fri, 5 Apr 2013 20:59:47 +0200 Subject: [PATCH] enable block menu if server supports only XEP-0191 --- src/gui_menu_builder.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui_menu_builder.py b/src/gui_menu_builder.py index 62e45abac..b5b959681 100644 --- a/src/gui_menu_builder.py +++ b/src/gui_menu_builder.py @@ -469,8 +469,8 @@ control=None, gc_contact=None, is_anonymous=True): execute_command_menuitem, send_custom_status_menuitem): widget.set_sensitive(False) - if gajim.connections[account] and gajim.connections[account].\ - privacy_rules_supported: + if gajim.connections[account] and (gajim.connections[account].\ + privacy_rules_supported or gajim.connections[account].blocking_supported): if helpers.jid_is_blocked(account, jid): block_menuitem.set_no_show_all(True) block_menuitem.hide()