don't allow /ping command for zeroconf account. Fixes #3685

This commit is contained in:
Yann Leboulanger 2008-06-16 12:56:16 +00:00
parent 1712fee325
commit 2f6106bda5
1 changed files with 5 additions and 1 deletions

View File

@ -1420,7 +1420,11 @@ class ChatControl(ChatControlBase):
return True
elif command == 'ping':
if not len(message_array):
gajim.connections[self.account].sendPing(self.contact)
if self.account == gajim.ZEROCONF_ACC_NAME:
self.print_conversation(
_('Command not supported for zeroconf account.'), 'info')
else:
gajim.connections[self.account].sendPing(self.contact)
else:
self.get_command_help(command)
self.clear(self.msg_textview)