From 4f550d29aaba718e76f09a0c8d8ee7f1947583a5 Mon Sep 17 00:00:00 2001 From: DukePyrolator Date: Tue, 24 Nov 2009 06:19:32 +0000 Subject: [PATCH] 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 --- src/users.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 */