/***************************************************************************
- * Copyright (C) 2005-2013 by the Quassel Project *
+ * Copyright (C) 2005-2014 by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
// TODO: only in compat mode
bool useSsl = false;
#ifdef HAVE_SSL
+ if (Quassel::isOptionSet("require-ssl") && !msg.sslSupported) {
+ _peer->dispatch(ClientDenied(tr("<b>SSL is required!</b><br>You need to use SSL in order to connect to this core.")));
+ _peer->close();
+ return;
+ }
if (Core::sslSupported() && msg.sslSupported)
useSsl = true;
#endif