X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcoreircchannel.cpp;h=02b81b76fb5743584f12a62beedf500f962bcf5e;hp=85eb333f68d15f1f9297caf9b808690c32d1c90b;hb=da215fcb9cd3096a3e223c87577d5d4ab8f8518b;hpb=6f0a153a674317d77233139fc50a2985af86e36e 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;