X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcoreircchannel.cpp;h=02b81b76fb5743584f12a62beedf500f962bcf5e;hp=85eb333f68d15f1f9297caf9b808690c32d1c90b;hb=393ac8b4bca9db98f297cb4756ef2e79364bf6f0;hpb=bb751e3ca71381c96f40974d574d0f317670fda6 diff --git a/src/core/coreircchannel.cpp b/src/core/coreircchannel.cpp index 85eb333f..02b81b76 100644 --- a/src/core/coreircchannel.cpp +++ b/src/core/coreircchannel.cpp @@ -46,6 +46,9 @@ Cipher *CoreIrcChannel::cipher() const { } void CoreIrcChannel::setEncrypted(bool e) { + if(!Cipher::neededFeaturesAvailable()) + return; + if(e) { if(topic().isEmpty()) return;