summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDukePyrolator <DukePyrolator@5417fbe8-f217-4b02-8779-1006273d7864>2009-11-24 06:19:32 +0000
committerDukePyrolator <DukePyrolator@5417fbe8-f217-4b02-8779-1006273d7864>2009-11-24 06:19:32 +0000
commit4f550d29aaba718e76f09a0c8d8ee7f1947583a5 (patch)
treea54a4257400b3303f1fb28dbb6ba24c7427614d2
parent68ef593292adaef4ab631654b75e4e0d721599ed (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.c3
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 */