X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcoreuserinputhandler.cpp;h=f1654a4d1169fc015149d0b58cb360fd17429558;hp=8292325f9c9b9bc1e456bbceb820e84498483dd2;hb=393ac8b4bca9db98f297cb4756ef2e79364bf6f0;hpb=bb751e3ca71381c96f40974d574d0f317670fda6 diff --git a/src/core/coreuserinputhandler.cpp b/src/core/coreuserinputhandler.cpp index 8292325f..f1654a4d 100644 --- a/src/core/coreuserinputhandler.cpp +++ b/src/core/coreuserinputhandler.cpp @@ -164,6 +164,9 @@ void CoreUserInputHandler::handleDelkey(const BufferInfo &bufferInfo, const QStr if(!bufferInfo.isValid()) return; + if(!Cipher::neededFeaturesAvailable()) + return; + QStringList parms = msg.split(' ', QString::SkipEmptyParts); if(parms.isEmpty() && !bufferInfo.bufferName().isEmpty()) @@ -454,6 +457,9 @@ void CoreUserInputHandler::handleSetkey(const BufferInfo &bufferInfo, const QStr if(!bufferInfo.isValid()) return; + if(!Cipher::neededFeaturesAvailable()) + return; + QStringList parms = msg.split(' ', QString::SkipEmptyParts); if(parms.count() == 1 && !bufferInfo.bufferName().isEmpty()) @@ -638,6 +644,9 @@ QByteArray CoreUserInputHandler::encrypt(const QString &target, const QByteArray if(message_.isEmpty()) return message_; + if(!Cipher::neededFeaturesAvailable()) + return message_; + Cipher *cipher = network()->cipher(target); if(!cipher) return message_;