try
{
MOD_RESULT = this->Config->GetIOHook(cu->GetPort())->OnRawSocketRead(cu->GetFd(),ReadBuffer,sizeof(ReadBuffer),result2);
- this->Log(DEBUG,"Data result returned by module: %d",MOD_RESULT);
}
catch (ModuleException& modexcept)
{
// This user didn't answer the last ping, remove them
if (!curr->lastping)
{
- GlobalGoners.AddItem(curr,"Ping timeout");
+ /* Everybody loves boobies. */
+ time_t time = this->Time() - (curr->nping - curr->pingmax);
+ std::string boobies = "Ping timeout: " + ConvToStr(time) + " second" + (time > 1 ? "s" : "");
+ GlobalGoners.AddItem(curr, boobies);
curr->lastping = 1;
curr->nping = TIME+curr->pingmax;
continue;