summaryrefslogtreecommitdiff
path: root/src/inspircd.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-14 15:56:17 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-14 15:56:17 +0000
commit75d690dda144486f6d0463cfc5f6ff398712267f (patch)
tree058a44a39b61aa1a47d2c6c4a8e5cba8ac97aafb /src/inspircd.cpp
parentd067ea709c394b107ea493fd1a74f35d56fb4889 (diff)
Added ability for modules to hold users in a 'holding pattern' while they do stuff on connect
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1088 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r--src/inspircd.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index cc4ccd35c..fa88ecdc4 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -2334,7 +2334,7 @@ void AddClient(int socket, char* host, int port, bool iscached, char* ip)
strncpy(clientlist[tempnick]->host, host,160);
strncpy(clientlist[tempnick]->dhost, host,160);
strncpy(clientlist[tempnick]->server, ServerName,256);
- strncpy(clientlist[tempnick]->ident, "unknown",9);
+ strncpy(clientlist[tempnick]->ident, "unknown",12);
clientlist[tempnick]->registered = 0;
clientlist[tempnick]->signon = TIME+dns_timeout;
clientlist[tempnick]->lastping = 1;
@@ -3929,12 +3929,14 @@ int InspIRCd(void)
}
if ((TIME > count2->second->signon) && (count2->second->registered == 3) && (AllModulesReportReady(count2->second)))
{
+ log(DEBUG,"signon exceed, registered=3, and modules ready, OK");
count2->second->dns_done = true;
FullConnectUser(count2->second);
goto label;
}
if ((count2->second->dns_done) && (count2->second->registered == 3) && (AllModulesReportReady(count2->second))) // both NICK and USER... and DNS
{
+ log(DEBUG,"dns done, registered=3, and modules ready, OK");
FullConnectUser(count2->second);
goto label;
}