author | Alberto Bertogli
<albertogli@telpin.com.ar> 2005-05-14 03:32:09 UTC |
committer | Alberto Bertogli
<albertogli@telpin.com.ar> 2005-05-14 03:32:09 UTC |
parent | b79737b444064dcd9bf3c8c35376fccd76f553b1 |
msn | +3 | -3 |
diff --git a/msn b/msn index d6710d6..8356703 100644 --- a/msn +++ b/msn @@ -1083,12 +1083,12 @@ def parse_cmd(cmd): m.userdel(email) elif cmd == 'ren': # rename a user - p = params.split() + p = params.split(None, 1) if len(p) < 2: return 'Error parsing command' email = nick2email(p[0]) if not email: return 'Unkown nick (%s)' % p[0] - newnick = p[1] + newnick = p[1].strip() u = m.users[email] m.userren(email, newnick) @@ -1530,7 +1530,7 @@ def cb_rea(md, type, tid, params): nick = urllib.unquote(t[2]) if email != md.email: out = '\r' + c.blue + c.bold + email + ' ' + c.magenta \ - + 'has been renamed\n' + + 'has been renamed to ' + c.bold + nick + '\n' printl(out) else: out = '\r' + c.magenta + 'Your nick has been changed\n'