catch (...)
{
Instance->Log(DEFAULT,"*** WTF *** Duplicated UUID! -- Crack smoking monkies have been unleashed.");
- Instance->SNO->WriteToSnoMask('O', "WARNING *** Duplicate UUID allocated!");
+ Instance->SNO->WriteToSnoMask('A', "WARNING *** Duplicate UUID allocated!");
return;
}
if ((Instance->local_users.size() > Instance->Config->SoftLimit) || (Instance->local_users.size() >= MAXCLIENTS))
{
- Instance->SNO->WriteToSnoMask('O', "Warning: softlimit value has been reached: %d clients", Instance->Config->SoftLimit);
+ Instance->SNO->WriteToSnoMask('A', "Warning: softlimit value has been reached: %d clients", Instance->Config->SoftLimit);
User::QuitUser(Instance, New,"No more connections allowed");
return;
}
}
}
- if (socket > -1)
- {
- if (!Instance->SE->AddFd(New))
- {
- Instance->Log(DEBUG,"Internal error on new connection");
- User::QuitUser(Instance, New, "Internal error handling connection");
- }
- }
+ if (!Instance->SE->AddFd(New))
+ {
+ Instance->Log(DEBUG,"Internal error on new connection");
+ User::QuitUser(Instance, New, "Internal error handling connection");
+ }
/* NOTE: even if dns lookups are *off*, we still need to display this.
* BOPM and other stuff requires it.
/* return how many local registered users there are */
unsigned int UserManager::LocalUserCount()
{
- /* Doesnt count unregistered clients */
- return (ServerInstance->local_users.size() - this->UnregisteredUserCount());
+ /* Doesnt count unregistered clients */
+ return (ServerInstance->local_users.size() - this->UnregisteredUserCount());
}