provides an 'e' command that lists users real nicknames --- msn | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/msn b/msn index 1e671e8..4911874 100755 --- a/msn +++ b/msn @@ -43,6 +43,7 @@ wd Prints the differences between your e Prints your online contacts ee Prints your online contacts, including email addresses eg Prints your online contacts with the groups +en Prints your online contacts, including real nicks wr Prints your reverse contact list h Shows your incoming message history add e [n] [g] Adds the user "e" with the nick "n" to the group "g" @@ -118,7 +119,7 @@ c = color_classes['default']() # command list for tab-completion purposes command_list = [ 'a', 'add', 'block', 'close', 'color', 'config', 'del', 'e', - 'ee', 'eg', 'g', 'gadd', 'gdel', 'green', 'h', 'help', 'info', + 'ee', 'eg', 'en', 'g', 'gadd', 'gdel', 'green', 'h', 'help', 'info', 'invite', 'lignore', 'luignore', 'm', 'nick', 'privacy', 'q', 'r', 'ren', 'status', 'unblock', 'w', 'wd', 'wr', 'ww' ] @@ -211,7 +212,7 @@ def print_group_list(md): for gid in gids: printl('%3.3s :: %s\n' % (gid, md.groups[gid])) -def print_grouped_list(md, only_online = 0, include_emails = 0): +def print_grouped_list(md, only_online = 0, include_emails = 0, include_realnicks = 0): db = {} for gid in md.groups.keys(): db[gid] = [] @@ -236,6 +237,8 @@ def print_grouped_list(md, only_online = printl('\t%7.7s :: %s' % (status, u.nick), bold = hl) if include_emails: printl(' (%s)' % (email), bold = hl) + if include_realnicks: + printl(' (%s)' % (u.realnick), bold = hl) if 'B' in u.lists: printl(' [!]') if email not in md.reverse.keys(): @@ -972,6 +975,9 @@ def parse_cmd(cmd): elif cmd == 'ee': print_grouped_list(m, only_online = 1, include_emails = 1) + elif cmd == 'en': + print_grouped_list(m, only_online = 1, include_realnicks = 1) + elif cmd == 'g': # list groups print_group_list(m)