summaryrefslogtreecommitdiff
path: root/src/userprocess.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-14 20:35:21 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-14 20:35:21 +0000
commit458a3297e436bcc9546f4e1377910c88c4478c3e (patch)
tree33f32e12a1b56138d5c2af9819a2b30342b69f1b /src/userprocess.cpp
parent51b1560725e8b95562a0d09b87755add4ba59aef (diff)
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
Diffstat (limited to 'src/userprocess.cpp')
-rw-r--r--src/userprocess.cpp12
1 files changed, 6 insertions, 6 deletions
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;
}