diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/commands.cpp | 4 | ||||
-rw-r--r-- | src/inspircd.cpp | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/commands.cpp b/src/commands.cpp index fb10243d0..635000974 100644 --- a/src/commands.cpp +++ b/src/commands.cpp @@ -1130,7 +1130,6 @@ void handle_user(char **parameters, int pcnt, userrec *user) WriteServ(user->fd,"461 %s USER :Not enough parameters",user->nick); } else { - WriteServ(user->fd,"NOTICE Auth :No ident response, ident prefixed with ~"); strcpy(user->ident,"~"); /* we arent checking ident... but these days why bother anyway? */ strlcat(user->ident,parameters[0],IDENTMAX); strlcpy(user->fullname,parameters[3],128); @@ -1146,6 +1145,7 @@ void handle_user(char **parameters, int pcnt, userrec *user) if (user->registered == 3) { /* user is registered now, bit 0 = USER command, bit 1 = sent a NICK command */ + FOREACH_MOD OnUserRegister(user); ConnectUser(user); } } @@ -1764,11 +1764,11 @@ void handle_nick(char **parameters, int pcnt, userrec *user) user->dns_done = (!lookup_dns(user->nick)); if (user->dns_done) log(DEBUG,"Aborting dns lookup of %s because dns server experienced a failure.",user->nick); - FOREACH_MOD OnUserRegister(user); } if (user->registered == 3) { /* user is registered now, bit 0 = USER command, bit 1 = sent a NICK command */ + FOREACH_MOD OnUserRegister(user); ConnectUser(user); } if (user->registered == 7) 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; } |