mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 11:09:04 -04:00
Fixed a few small dns timeout bugs (allowing users on without nick or user)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@960 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
786dfff311
commit
89904c1032
@ -223,6 +223,7 @@ public:
|
||||
if ((hostname != "") && (usr->registered != 7))
|
||||
{
|
||||
strlcpy(usr->host,hostname.c_str(),MAXBUF);
|
||||
strlcpy(usr->dhost,hostname.c_str(),MAXBUF);
|
||||
WriteServ(usr->fd,"NOTICE Auth :Resolved your hostname: %s",hostname.c_str());
|
||||
usr->dns_done = true;
|
||||
return true;
|
||||
|
@ -3538,7 +3538,7 @@ int InspIRCd(void)
|
||||
kill_link(count2->second,"Registration timeout");
|
||||
goto label;
|
||||
}
|
||||
if ((time(NULL) > count2->second->signon) && (count2->second->registered != 7))
|
||||
if ((time(NULL) > count2->second->signon) && (count2->second->registered == 3))
|
||||
{
|
||||
count2->second->dns_done = true;
|
||||
FullConnectUser(count2->second);
|
||||
@ -3546,7 +3546,6 @@ int InspIRCd(void)
|
||||
}
|
||||
if ((count2->second->dns_done) && (count2->second->registered == 3)) // both NICK and USER... and DNS
|
||||
{
|
||||
WriteServ(count2->second->fd,"NOTICE Auth :Timed out when looking up your hostname!",ServerName);
|
||||
FullConnectUser(count2->second);
|
||||
goto label;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user