]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/users.cpp
m_ssl_openssl Specify TLS client/server role on session creation, switch to SSL_do_ha...
[user/henk/code/inspircd.git] / src / users.cpp
index 4dffe6056a8a3b25131aacbcd59df342b89f1a60..d760c713f30803be77e026a8aab06b0c56c8a861 100644 (file)
@@ -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);
 }