X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcoreauthhandler.cpp;h=3514ecd15580e0c4b4faa0193f014bdfae721bb7;hp=d559e44e162c505fe6cbbe8b10309e2d5f929bbe;hb=8c6448c2e0048389fbac9e2e9daf22b5b050d5b6;hpb=696edd3dc076cf52edd8bece9055c2b3ec9086d0 diff --git a/src/core/coreauthhandler.cpp b/src/core/coreauthhandler.cpp index d559e44e..3514ecd1 100644 --- a/src/core/coreauthhandler.cpp +++ b/src/core/coreauthhandler.cpp @@ -25,7 +25,6 @@ #endif #include "core.h" -#include "logmessage.h" using namespace Protocol; @@ -167,7 +166,7 @@ void CoreAuthHandler::handle(const RegisterClient& msg) useSsl = _connectionFeatures & Protocol::Encryption; if (Quassel::isOptionSet("require-ssl") && !useSsl && !_peer->isLocal()) { - quInfo() << qPrintable(tr("SSL required but non-SSL connection attempt from %1").arg(socket()->peerAddress().toString())); + qInfo() << qPrintable(tr("SSL required but non-SSL connection attempt from %1").arg(socket()->peerAddress().toString())); _peer->dispatch(ClientDenied(tr("SSL is required!
You need to use SSL in order to connect to this core."))); _peer->close(); return; @@ -204,7 +203,7 @@ void CoreAuthHandler::handle(const SetupData& msg) // The default parameter to authenticator is Database. // Maybe this should be hardcoded elsewhere, i.e. as a define. QString authenticator = msg.authenticator; - quInfo() << "[" << authenticator << "]"; + qInfo() << "[" << authenticator << "]"; if (authenticator.trimmed().isEmpty()) { authenticator = QString("Database"); } @@ -237,27 +236,27 @@ void CoreAuthHandler::handle(const Login& msg) } if (uid == 0) { - quInfo() << qPrintable(tr("Invalid login attempt from %1 as \"%2\"").arg(socket()->peerAddress().toString(), msg.user)); + qInfo() << qPrintable(tr("Invalid login attempt from %1 as \"%2\"").arg(socket()->peerAddress().toString(), msg.user)); _peer->dispatch(LoginFailed(tr( "Invalid username or password!
The username/password combination you supplied could not be found in the database."))); return; } _peer->dispatch(LoginSuccess()); - quInfo() << qPrintable(tr("Client %1 initialized and authenticated successfully as \"%2\" (UserId: %3).") - .arg(socket()->peerAddress().toString(), msg.user, QString::number(uid.toInt()))); + qInfo() << qPrintable(tr("Client %1 initialized and authenticated successfully as \"%2\" (UserId: %3).") + .arg(socket()->peerAddress().toString(), msg.user, QString::number(uid.toInt()))); const auto& clientFeatures = _peer->features(); auto unsupported = clientFeatures.toStringList(false); if (!unsupported.isEmpty()) { if (unsupported.contains("NoFeatures")) - quInfo() << qPrintable(tr("Client does not support extended features.")); + qInfo() << qPrintable(tr("Client does not support extended features.")); else - quInfo() << qPrintable(tr("Client does not support the following features: %1").arg(unsupported.join(", "))); + qInfo() << qPrintable(tr("Client does not support the following features: %1").arg(unsupported.join(", "))); } if (!clientFeatures.unknownFeatures().isEmpty()) { - quInfo() << qPrintable(tr("Client supports unknown features: %1").arg(clientFeatures.unknownFeatures().join(", "))); + qInfo() << qPrintable(tr("Client supports unknown features: %1").arg(clientFeatures.unknownFeatures().join(", "))); } disconnect(socket(), nullptr, this, nullptr);