X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcore%2Fcoreircchannel.cpp;h=208551049d4aa9a482b355b35b7c20ce31e32019;hb=a5455d1ea8785e864ce4b513e63283ed156d4872;hp=85eb333f68d15f1f9297caf9b808690c32d1c90b;hpb=6f0a153a674317d77233139fc50a2985af86e36e;p=quassel.git diff --git a/src/core/coreircchannel.cpp b/src/core/coreircchannel.cpp index 85eb333f..20855104 100644 --- a/src/core/coreircchannel.cpp +++ b/src/core/coreircchannel.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2010 by the Quassel Project * + * Copyright (C) 2005-2012 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -46,6 +46,9 @@ Cipher *CoreIrcChannel::cipher() const { } void CoreIrcChannel::setEncrypted(bool e) { + if(!Cipher::neededFeaturesAvailable()) + return; + if(e) { if(topic().isEmpty()) return;