check for qca provider plugin, fixes #1045
[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;