X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fuserprocess.cpp;h=3dc3143de02abaa8b441813e695c423147499700;hb=0de0e25586bf6153e682a05e1abdb43bc4ee16e4;hp=cf1fd86c1dfc753932d6e24f458fa24f3b9870ab;hpb=4b856bda135a08e800b96c970a10b0b6a34d433a;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/userprocess.cpp b/src/userprocess.cpp index cf1fd86c1..3dc3143de 100644 --- a/src/userprocess.cpp +++ b/src/userprocess.cpp @@ -21,10 +21,10 @@ void FloodQuitUserHandler::Call(User* current) { - Server->Logs->Log("USERS",DEFAULT,"Excess flood from: %s@%s", current->ident.c_str(), current->host); + Server->Logs->Log("USERS",DEFAULT,"Excess flood from: %s@%s", current->ident.c_str(), current->host.c_str()); Server->SNO->WriteToSnoMask('f',"Excess flood from: %s%s%s@%s", current->registered == REG_ALL ? current->nick.c_str() : "", - current->registered == REG_ALL ? "!" : "", current->ident.c_str(), current->host); + current->registered == REG_ALL ? "!" : "", current->ident.c_str(), current->host.c_str()); Server->Users->QuitUser(current, "Excess flood"); if (current->registered != REG_ALL) @@ -171,6 +171,9 @@ void InspIRCd::DoBackgroundUserStuff() { User *curr = *count2; + if (curr->quitting) + continue; + if (curr->Penalty) { curr->Penalty--;