summaryrefslogtreecommitdiff
path: root/src/commands.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/commands.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/commands.cpp')
-rw-r--r--src/commands.cpp4
1 files changed, 2 insertions, 2 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)