summaryrefslogtreecommitdiff
path: root/src/cmd_nick.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_nick.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_nick.cpp')
-rw-r--r--src/cmd_nick.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cmd_nick.cpp b/src/cmd_nick.cpp
index dd3850342..fe600dc30 100644
--- a/src/cmd_nick.cpp
+++ b/src/cmd_nick.cpp
@@ -49,6 +49,7 @@ using namespace std;
#include "typedefs.h"
#include "command_parse.h"
#include "cmd_nick.h"
+#include "cull_list.h"
extern ServerConfig* Config;
extern InspIRCd* ServerInstance;
@@ -63,6 +64,8 @@ extern std::vector<userrec*> all_opers;
extern std::vector<userrec*> local_users;
extern userrec* fd_ref_table[65536];
+extern CullList* GlobalGoners;
+
void cmd_nick::Handle (char **parameters, int pcnt, userrec *user)
{
char oldnick[NICKMAX];
@@ -191,7 +194,7 @@ void cmd_nick::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);
}
if (user->registered == 7)
{