1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 09:56:38 +02:00

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
This commit is contained in:
DukePyrolator
2009-11-24 06:19:32 +00:00
parent 68ef593292
commit 4f550d29aa
+2 -1
View File
@@ -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 */