extern std::vector<ircd_module*> factory;
extern time_t TIME;
extern time_t OLDTIME;
-extern std::vector<userrec*> local_users;
char data[65536];
-extern user_hash clientlist;
-extern chan_hash chanlist;
-
void InspIRCd::ProcessUser(userrec* cu)
{
int result = EAGAIN;
{
log(DEFAULT,"Excess flood from: %s!%s@%s",current->nick,current->ident,current->host);
WriteOpers("*** Excess flood from: %s!%s@%s",current->nick,current->ident,current->host);
- userrec::QuitUser(current,"Excess flood");
+ userrec::QuitUser(this, current,"Excess flood");
return;
}
else
{
if (current->registered == REG_ALL)
{
- userrec::QuitUser(current,"RecvQ exceeded");
+ userrec::QuitUser(this, current,"RecvQ exceeded");
}
else
{
{
log(DEFAULT,"Excess flood from: %s!%s@%s",current->nick,current->ident,current->host);
WriteOpers("*** Excess flood from: %s!%s@%s",current->nick,current->ident,current->host);
- userrec::QuitUser(current,"Excess flood");
+ userrec::QuitUser(this, current,"Excess flood");
return;
}
{
log(DEFAULT,"Excess flood from: %s!%s@%s",current->nick,current->ident,current->host);
WriteOpers("*** Excess flood from: %s!%s@%s",current->nick,current->ident,current->host);
- userrec::QuitUser(current,"Excess flood");
+ userrec::QuitUser(this, current,"Excess flood");
}
else
{
if ((result == -1) && (errno != EAGAIN) && (errno != EINTR))
{
log(DEBUG,"killing: %s",cu->nick);
- userrec::QuitUser(cu,strerror(errno));
+ userrec::QuitUser(this,cu,strerror(errno));
return;
}
}
else if (result == 0)
{
log(DEBUG,"InspIRCd: Exited: %s",cu->nick);
- userrec::QuitUser(cu,"Client exited");
+ userrec::QuitUser(this,cu,"Client exited");
log(DEBUG,"Bailing from client exit");
return;
}
CullList GlobalGoners;
/* XXX: IT IS NOT SAFE TO USE AN ITERATOR HERE. DON'T EVEN THINK ABOUT IT. */
- for (unsigned long count2 = 0; count2 != local_users.size(); count2++)
+ for (unsigned long count2 = 0; count2 != this->local_users.size(); count2++)
{
- if (count2 >= local_users.size())
+ if (count2 >= this->local_users.size())
break;
- userrec* curr = local_users[count2];
+ userrec* curr = this->local_users[count2];
if (curr)
{