Fixes #960 - "Core crashes after deleting a Network without disconnecting the Network...
[quassel.git] / src / core / coreircchannel.cpp
index 85eb333..02b81b7 100644 (file)
@@ -46,6 +46,9 @@ Cipher *CoreIrcChannel::cipher() const {
 }
 
 void CoreIrcChannel::setEncrypted(bool e) {
+  if(!Cipher::neededFeaturesAvailable())
+    return;
+
   if(e) {
     if(topic().isEmpty())
       return;