don't allow /ping command for zeroconf account. Fixes #3685
This commit is contained in:
		
							parent
							
								
									1712fee325
								
							
						
					
					
						commit
						2f6106bda5
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		|  | @ -1420,6 +1420,10 @@ class ChatControl(ChatControlBase): | ||||||
| 			return True | 			return True | ||||||
| 		elif command == 'ping': | 		elif command == 'ping': | ||||||
| 			if not len(message_array): | 			if not len(message_array): | ||||||
|  | 				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) | 					gajim.connections[self.account].sendPing(self.contact) | ||||||
| 			else: | 			else: | ||||||
| 				self.get_command_help(command) | 				self.get_command_help(command) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue