summaryrefslogtreecommitdiff
path: root/src/cmd_user.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/cmd_user.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/cmd_user.cpp')
-rw-r--r--src/cmd_user.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cmd_user.cpp b/src/cmd_user.cpp
index 8c2b4fe64..7aa64b092 100644
--- a/src/cmd_user.cpp
+++ b/src/cmd_user.cpp
@@ -48,6 +48,7 @@ using namespace std;
#include "typedefs.h"
#include "command_parse.h"
#include "cmd_user.h"
+#include "cull_list.h"
extern ServerConfig* Config;
extern InspIRCd* ServerInstance;
@@ -62,6 +63,8 @@ extern std::vector<userrec*> all_opers;
extern std::vector<userrec*> local_users;
extern userrec* fd_ref_table[65536];
+extern CullList* GlobalGoners;
+
void cmd_user::Handle (char **parameters, int pcnt, userrec *user)
{
log(DEBUG,"Handling USER from cmd_user class!");
@@ -92,7 +95,7 @@ void cmd_user::Handle (char **parameters, int pcnt, userrec *user)
{
/* user is registered now, bit 0 = USER command, bit 1 = sent a NICK command */
FOREACH_MOD(I_OnUserRegister,OnUserRegister(user));
- ConnectUser(user);
+ ConnectUser(user,GlobalGoners);
}
}