diff options
-rw-r--r-- | src/users.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/users.c b/src/users.c index bfc6131bf..5ca1aac03 100644 --- a/src/users.c +++ b/src/users.c @@ -679,7 +679,8 @@ User *do_nick(const char *source, const char *nick, const char *username, const user->realname = sstrdup(realname); user->timestamp = ts; user->my_signon = time(NULL); - user->SetCloakedHost(vhost); + if (vhost) + user->SetCloakedHost(vhost); user->SetVIdent(username); /* We now store the user's ip in the user_ struct, * because we will use it in serveral places -- DrStein */ |