aboutsummaryrefslogtreecommitdiffstats
path: root/user.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-05-25 01:04:18 +0200
committerJelmer Vernooij <jelmer@samba.org>2006-05-25 01:04:18 +0200
commit601e81362bbf4e4d1e686334b35d3bdcd87314d2 (patch)
tree53ed2250bfc35b9e8da568b6f624a530d323ef32 /user.c
parent46ad029950221205d1eb6201ec2f01c7231876c2 (diff)
parentfc630f9fb47690c30feaf4738727a213d633afc9 (diff)
[merge] Wilmer
Diffstat (limited to 'user.c')
-rw-r--r--user.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/user.c b/user.c
index b795c864..9c987fa5 100644
--- a/user.c
+++ b/user.c
@@ -167,8 +167,8 @@ void user_rename( irc_t *irc, char *oldnick, char *newnick )
if( u->nick == u->realname ) u->realname = NULL;
u->nick = g_strdup( newnick );
if( !u->user ) u->user = u->nick;
- if( !u->host ) u->user = u->host;
- if( !u->realname ) u->user = u->realname;
+ if( !u->host ) u->host = u->nick;
+ if( !u->realname ) u->realname = u->nick;
/* Remove the old reference to this user from the hash and create a
new one with the new nick. This is indeed a bit messy. */