From 458a3297e436bcc9546f4e1377910c88c4478c3e Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 14 Dec 2006 20:35:21 +0000 Subject: Fix silly bug of the day. User was only getting a userrec::chans entry added if they had any privelages on the channel. If they werent opped, voiced, or halfopped on join, no entry in the hash. Silly brain now added a: user->chans[Ptr] = 0; :p git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5990 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/userprocess.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/userprocess.cpp') diff --git a/src/userprocess.cpp b/src/userprocess.cpp index 815663ad8..6389d996e 100644 --- a/src/userprocess.cpp +++ b/src/userprocess.cpp @@ -112,7 +112,7 @@ void InspIRCd::ProcessUser(userrec* cu) { this->Log(DEFAULT,"Excess flood from: %s!%s@%s",current->nick,current->ident,current->host); this->SNO->WriteToSnoMask('f',"Excess flood from: %s!%s@%s",current->nick,current->ident,current->host); - userrec::QuitUser(this, current,"Excess flood"); + current->SetWriteError("Excess flood"); return; } else @@ -136,7 +136,7 @@ void InspIRCd::ProcessUser(userrec* cu) { if (current->registered == REG_ALL) { - userrec::QuitUser(this, current,"RecvQ exceeded"); + current->SetWriteError("RecvQ exceeded"); } else { @@ -162,7 +162,7 @@ void InspIRCd::ProcessUser(userrec* cu) { this->Log(DEFAULT,"Excess flood from: %s!%s@%s",current->nick,current->ident,current->host); this->SNO->WriteToSnoMask('f',"Excess flood from: %s!%s@%s",current->nick,current->ident,current->host); - userrec::QuitUser(this, current,"Excess flood"); + current->SetWriteError("Excess flood"); return; } @@ -172,7 +172,7 @@ void InspIRCd::ProcessUser(userrec* cu) { this->Log(DEFAULT,"Excess flood from: %s!%s@%s",current->nick,current->ident,current->host); SNO->WriteToSnoMask('f',"Excess flood from: %s!%s@%s",current->nick,current->ident,current->host); - userrec::QuitUser(this, current,"Excess flood"); + current->SetWriteError("Excess flood"); } else { @@ -211,7 +211,7 @@ void InspIRCd::ProcessUser(userrec* cu) if ((result == -1) && (errno != EAGAIN) && (errno != EINTR)) { this->Log(DEBUG,"killing: %s",cu->nick); - userrec::QuitUser(this,cu,strerror(errno)); + cu->SetWriteError(strerror(errno)); return; } } @@ -223,7 +223,7 @@ void InspIRCd::ProcessUser(userrec* cu) } else if (result == 0) { - userrec::QuitUser(this,cu,"Client exited"); + cu->SetWriteError("Client exited"); this->Log(DEBUG,"Bailing from client exit"); return; } -- cgit v1.3.1-10-gc9f91