X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fusers.cpp;h=d760c713f30803be77e026a8aab06b0c56c8a861;hb=06eb88c10cb7a57ea800e0204b48277de9cb02ca;hp=4dffe6056a8a3b25131aacbcd59df342b89f1a60;hpb=30bcf4894f1da0db8dde15329260c801f748a019;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/users.cpp b/src/users.cpp index 4dffe6056..d760c713f 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -764,7 +764,7 @@ void LocalUser::Write(const std::string& text) if (text.length() > ServerInstance->Config->Limits.MaxLine - 2) { // this should happen rarely or never. Crop the string at 512 and try again. - std::string try_again(0, ServerInstance->Config->Limits.MaxLine - 2); + std::string try_again(text, 0, ServerInstance->Config->Limits.MaxLine - 2); Write(try_again); return; } @@ -866,9 +866,6 @@ namespace void User::WriteCommon(const char* text, ...) { - if (this->registered != REG_ALL || quitting) - return; - std::string textbuffer; VAFORMAT(textbuffer, text, text); textbuffer = ":" + this->GetFullHost() + " " + textbuffer; @@ -877,9 +874,6 @@ void User::WriteCommon(const char* text, ...) void User::WriteCommonRaw(const std::string &line, bool include_self) { - if (this->registered != REG_ALL || quitting) - return; - WriteCommonRawHandler handler(line); ForEachNeighbor(handler, include_self); }