check for qca provider plugin, fixes #1045
[quassel.git] / src / core / corenetwork.cpp
index b7ec55d..5b539fa 100644 (file)
@@ -281,6 +281,9 @@ Cipher *CoreNetwork::cipher(const QString &target) const {
   if(target.isEmpty())
     return 0;
 
+  if(!Cipher::neededFeaturesAvailable())
+    return 0;
+
   QByteArray key = cipherKey(target);
   if(key.isEmpty())
     return 0;