diff options
author | DukePyrolator <DukePyrolator@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-11-24 06:19:32 +0000 |
---|---|---|
committer | DukePyrolator <DukePyrolator@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-11-24 06:19:32 +0000 |
commit | 4f550d29aaba718e76f09a0c8d8ee7f1947583a5 (patch) | |
tree | a54a4257400b3303f1fb28dbb6ba24c7427614d2 | |
parent | 68ef593292adaef4ab631654b75e4e0d721599ed (diff) |
fixed a crash when a user connects without a vhost
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2666 5417fbe8-f217-4b02-8779-1006273d7864
-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 */ |