gives 'nick' command default behaviour of displaying the users current nick, when invoked with no parameter; this makes it slightly more consitent with other commands. --- msn | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/msn b/msn index 4911874..c883a85 100755 --- a/msn +++ b/msn @@ -63,7 +63,7 @@ close nick Closes the switchboard connec config Shows the configuration info [nick] Shows the user information and pending messages (if any), or our personal info -nick newnick Changes your nick to "newnick" +nick [newnick] Changes your nick to "newnick" or shows own nick privacy p a Sets whether accept messages from people not on your list (p) and require authorization (a) m nick text Sends a message to "nick" with the "text" @@ -1185,10 +1185,12 @@ def parse_cmd(cmd): return 'No current chat with user %s' % dst m.invite(email, dst_sbd) - elif cmd == 'nick': # change our nick - if len(params) < 1: return 'Error parsing command' - nick = params - m.change_nick(nick) + elif cmd == 'nick': # show or change our nick + if len(params) < 1: + printl('Nick is '+m.nick) + else: + nick = params + m.change_nick(nick) elif cmd == 'info': # user info p = params.split()