X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fnetworkconnection.cpp;h=912c2c0ff347c3f62895750ab05ff3527e17dcaa;hp=a8b8e1573e2e0900eeda0f4ebe22c50098174e05;hb=2dd7667489021341267d316472d375e8c89c79c0;hpb=152e7c35efbf97e40d91c60cdb9c3ba734f09fb2 diff --git a/src/core/networkconnection.cpp b/src/core/networkconnection.cpp index a8b8e157..912c2c0f 100644 --- a/src/core/networkconnection.cpp +++ b/src/core/networkconnection.cpp @@ -174,8 +174,14 @@ void NetworkConnection::networkInitialized() { } void NetworkConnection::sendPerform() { + BufferInfo statusBuf = Core::bufferInfo(coreSession()->user(), network()->networkId(), BufferInfo::StatusBuffer); + // do auto identify + if(network()->useAutoIdentify() && !network()->autoIdentifyService().isEmpty() && !network()->autoIdentifyPassword().isEmpty()) { + userInputHandler()->handleMsg(statusBuf, QString("%1 IDENTIFY %2").arg(network()->autoIdentifyService(), network()->autoIdentifyPassword())); + } + // send perform list foreach(QString line, network()->perform()) { - if(!line.isEmpty()) userInput(Core::bufferInfo(coreSession()->user(), network()->networkId(), BufferInfo::StatusBuffer), line); + if(!line.isEmpty()) userInput(statusBuf, line); } }