git » msnlib » commit e38375b

Mark users that don't have you on their contact list.

author Alberto Bertogli
2005-05-27 15:51:44 UTC
committer Alberto Bertogli
2005-05-27 15:51:44 UTC
parent 28c8ea469360fe41e5523abfabeb5c733dbff1d1

Mark users that don't have you on their contact list.
Patch by Sebastian Santisi.

msn +10 -6

diff --git a/msn b/msn
index 54a7f23..2e74a6a 100644
--- a/msn
+++ b/msn
@@ -174,11 +174,13 @@ def print_list(md, only_online = 0, userlist = None, include_emails = 0):
 			if only_online:	continue
 			hl = 0
 		status = msnlib.reverse_status[u.status]
-		printl('%7.7s :: %s ' % (status, u.nick), bold = hl)
+		printl('%7.7s :: %s' % (status, u.nick), bold = hl)
 		if include_emails:
-			printl('(%s) ' % (email), bold = hl)
+			printl(' (%s)' % (email), bold = hl)
 		if 'B' in u.lists:
-			printl('[!]')
+			printl(' [!]')
+		if email not in md.reverse.keys():
+			printl(' [X]')
 		printl('\n')
 
 def print_diff(md):
@@ -231,11 +233,13 @@ def print_grouped_list(md, only_online = 0, include_emails = 0):
 				if only_online: continue
 				hl = 0
 			status = msnlib.reverse_status[u.status]
-			printl('\t%7.7s :: %s ' % (status, u.nick), bold = hl)
+			printl('\t%7.7s :: %s' % (status, u.nick), bold = hl)
 			if include_emails:
-				printl('(%s) ' % (email), bold = hl)
+				printl(' (%s)' % (email), bold = hl)
 			if 'B' in u.lists:
-				printl('[!]')
+				printl(' [!]')
+			if email not in md.reverse.keys():
+				printl(' [X]')
 			printl('\n')
 
 def print_user_info(email):