summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-28 19:57:26 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-28 19:57:26 +0000
commit3b6b04b1ee6ce0b9b5274def704170e6181236ec (patch)
tree2ef95d38433caca09889e5ea406ef1519da24041 /src/users.cpp
parent025dbe3aa585e4002946d2bb80cba88fa15337b3 (diff)
Changes to the way clients are exited during mainloop - MAY BE UNSTABLE USE WITH CAUTION
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2680 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/users.cpp b/src/users.cpp
index a9f927f3f..bde0f99fd 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -633,7 +633,7 @@ void AddClient(int socket, char* host, int port, bool iscached, char* ip)
ServerInstance->SE->AddFd(socket,true,X_ESTAB_CLIENT);
}
-void FullConnectUser(userrec* user)
+void FullConnectUser(userrec* user, CullList* Goners)
{
ServerInstance->stats->statsConnects++;
user->idle_lastmsg = TIME;
@@ -641,12 +641,12 @@ void FullConnectUser(userrec* user)
if ((strcmp(Passwd(user),"")) && (!user->haspassed))
{
- kill_link(user,"Invalid password");
+ Goners->AddItem(user,"Invalid password");
return;
}
if (IsDenied(user))
{
- kill_link(user,"Unauthorised connection");
+ Goners->AddItem(user,"Unauthorised connection");
return;
}
@@ -660,7 +660,7 @@ void FullConnectUser(userrec* user)
{
char reason[MAXBUF];
snprintf(reason,MAXBUF,"G-Lined: %s",r);
- kill_link_silent(user,reason);
+ Goners->AddItem(user,reason);
return;
}
r = matches_kline(user->host);
@@ -668,7 +668,7 @@ void FullConnectUser(userrec* user)
{
char reason[MAXBUF];
snprintf(reason,MAXBUF,"K-Lined: %s",r);
- kill_link_silent(user,reason);
+ Goners->AddItem(user,reason);
return;
}
}
@@ -717,12 +717,12 @@ void FullConnectUser(userrec* user)
/* shows the message of the day, and any other on-logon stuff */
-void ConnectUser(userrec *user)
+void ConnectUser(userrec *user, CullList* Goners)
{
// dns is already done, things are fast. no need to wait for dns to complete just pass them straight on
if ((user->dns_done) && (user->registered >= 3) && (AllModulesReportReady(user)))
{
- FullConnectUser(user);
+ FullConnectUser(user, Goners);
}
}