allow to execute commands even if there is no resource. XEP don't forbid that. fixes #3453

This commit is contained in:
Yann Leboulanger 2007-09-20 14:31:27 +00:00
parent cf9945245a
commit c7dbb136ac
1 changed files with 2 additions and 8 deletions

View File

@ -2232,14 +2232,8 @@ class RosterWindow:
else: # one resource
start_chat_menuitem.connect('activate',
self.on_open_chat_window, contact, account)
# we cannot execute commands when the resource is unknown
# TODO: that's true only if the entity is a contact,
# TODO: we need to show this also for transports
if contact.resource:
execute_command_menuitem.connect('activate',
self.on_execute_command, contact, account, contact.resource)
else:
execute_command_menuitem.set_sensitive(False)
execute_command_menuitem.connect('activate', self.on_execute_command,
contact, account, contact.resource)
our_jid_other_resource = None
if our_jid: