X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcoreircchannel.cpp;h=7ec82b93df6ecd8092b20c6c34283607c0fef732;hp=f0e65ff6ae56d44934f573b1743b029d0c3df85f;hb=47a6910aed00018c7230cc2cc90ae8e80fa77dda;hpb=5b686746c880e5cda6d5de3e08180ea4332ff222 diff --git a/src/core/coreircchannel.cpp b/src/core/coreircchannel.cpp index f0e65ff6..7ec82b93 100644 --- a/src/core/coreircchannel.cpp +++ b/src/core/coreircchannel.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2012 by the Quassel Project * + * Copyright (C) 2005-2013 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -52,6 +52,8 @@ Cipher *CoreIrcChannel::cipher() const void CoreIrcChannel::setEncrypted(bool e) { + IrcChannel::setEncrypted(e); + if (!Cipher::neededFeaturesAvailable()) return; @@ -59,13 +61,6 @@ void CoreIrcChannel::setEncrypted(bool e) if (topic().isEmpty()) return; - QByteArray key = qobject_cast(network())->cipherKey(name()); - if (key.isEmpty()) - return; - - if (!cipher()->setKey(key)) - return; - QByteArray decrypted = cipher()->decryptTopic(topic().toAscii()); setTopic(decodeString(decrypted)); }