more work on user info

This commit is contained in:
Kevin Froman 2018-08-27 23:45:31 -05:00
parent 7a0cfe34f3
commit c907558dd1
No known key found for this signature in database
GPG key ID: 0D414D0FE405B63B
5 changed files with 72 additions and 3 deletions

View file

@ -275,7 +275,10 @@ class Onionr:
action = action.lower()
if action == 'list':
for friend in self.onionrCore.listPeers(randomOrder=False, trust=1):
logger.info(friend)
if friend == self.onionrCore._crypto.pubKey:
continue
friendProfile = onionrusers.OnionrUser(self.onionrCore, friend)
logger.info(friend + ' - ' + friendProfile.getName())
elif action in ('add', 'remove'):
try:
friend = sys.argv[3]