X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fuserprocess.cpp;h=4cc3f0a889b0cb0f965a12bf1b2e08dfe6e64c80;hb=984cc96a1f832abf9b5fcfddcd8260c5b12bd2a9;hp=bc354fa6d955ab0d11341dc6e6305cf4f1c1a1f8;hpb=6d03943426dcce76ba66567a9b18425a5ebb4c0c;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/userprocess.cpp b/src/userprocess.cpp index bc354fa6d..4cc3f0a88 100644 --- a/src/userprocess.cpp +++ b/src/userprocess.cpp @@ -46,10 +46,10 @@ void InspIRCd::DoBackgroundUserStuff() /* * loop over all local users.. */ - std::vector::reverse_iterator count2 = this->Users->local_users.rbegin(); + std::vector::reverse_iterator count2 = this->Users->local_users.rbegin(); while (count2 != this->Users->local_users.rend()) { - User *curr = *count2; + LocalUser *curr = *count2; count2++; if (curr->quitting) @@ -61,11 +61,6 @@ void InspIRCd::DoBackgroundUserStuff() curr->OnDataReady(); } - if (curr->getSendQSize() == 0) - { - FOREACH_MOD(I_OnBufferFlushed,OnBufferFlushed(curr)); - } - switch (curr->registered) { case REG_ALL: @@ -83,7 +78,7 @@ void InspIRCd::DoBackgroundUserStuff() continue; } - curr->Write("PING :%s",this->Config->ServerName); + curr->Write("PING :%s",this->Config->ServerName.c_str()); curr->lastping = 0; curr->nping = TIME +curr->MyClass->GetPingTime(); }