diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2006-05-20 13:48:08 +0200 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2006-05-20 13:48:08 +0200 |
commit | c53911ec23848d13cbbaa10286895d874abd0b08 (patch) | |
tree | 4b6f04ae2bfebef8756d8bbe6a25fea1cd1cad3a /user.c | |
parent | 881fd4e3a6d6405e982239e8b315069b724a1d22 (diff) |
Fixed a string handling mistake and better stripping of servernames used
in user_t structures.
Diffstat (limited to 'user.c')
-rw-r--r-- | user.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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. */ |