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:
+2
-1
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user