X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fusers.cpp;h=5f495aafbfc8f5e65c993ee7e929a407018d311a;hb=19963bd452eac3c9fc52b3ee60fbf1a81efed7d3;hp=8aeb4a1f6318ac6ed70a0ac79b3b353cbd223b68;hpb=d7b1e9fb444b1e9c71dd863b1f33ada09197a0f4;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/users.cpp b/src/users.cpp index 8aeb4a1f6..5f495aafb 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -816,6 +816,9 @@ void LocalUser::FullConnect() if (!MOD_RESULT) ServerInstance->CallCommandHandler(command, parameters, this); + if (ServerInstance->Config->RawLog) + WriteServ("PRIVMSG %s :*** Raw I/O logging is enabled on this server. All messages, passwords, and commands are being recorded.", nick.c_str()); + /* * We don't set REG_ALL until triggering OnUserConnect, so some module events don't spew out stuff * for a user that doesn't exist yet. @@ -1020,7 +1023,7 @@ void LocalUser::Write(const std::string& text) return; } - ServerInstance->Logs->Log("USEROUTPUT", DEBUG,"C[%s] O %s", uuid.c_str(), text.c_str()); + ServerInstance->Logs->Log("USEROUTPUT", RAWIO, "C[%s] O %s", uuid.c_str(), text.c_str()); eh.AddWriteBuf(text); eh.AddWriteBuf(wide_newline); @@ -1622,7 +1625,7 @@ void LocalUser::SetClass(const std::string &explicit_name) continue; } - if (!c->config->getString("pass").empty()) + if (regdone && !c->config->getString("pass").empty()) { if (ServerInstance->PassCompare(this, c->config->getString("pass"), password, c->config->getString("hash"))) {