X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcore%2Fircparser.cpp;h=f71f53c156cc48f95338f305b8621e5db7d306a9;hb=3146ad01b5b29c30adcf0044a52b39aa7e5796d0;hp=69603c1cc17aa0db59a3a28efa26716378ce90db;hpb=0e1b154f362e13c2c9009f842e3fd6d8e7c346fc;p=quassel.git diff --git a/src/core/ircparser.cpp b/src/core/ircparser.cpp index 69603c1c..f71f53c1 100644 --- a/src/core/ircparser.cpp +++ b/src/core/ircparser.cpp @@ -58,7 +58,7 @@ QByteArray IrcParser::decrypt(Network *network, const QString &bufferName, const return message; Cipher *cipher = qobject_cast(network)->cipher(bufferName); - if (!cipher) + if (!cipher || cipher->key().isEmpty()) return message; return isTopic ? cipher->decryptTopic(message) : cipher->decrypt(message);