- if (! setCertificate(quasselDir().absolutePath() + "/quasselCert.pem")) {
- qWarning()
- << "SslServer: Unable to set certificate file\n"
- << " Quassel Core will still work, but cannot provide SSL for client connections.\n"
- << " Please see http://quassel-irc.org/faq/cert to learn how to enable SSL support.";
+ static bool sslWarningShown = false;
+ if(!setCertificate(Quassel::configDirPath() + "quasselCert.pem")) {
+ if(!sslWarningShown) {
+ quWarning()
+ << "SslServer: Unable to set certificate file\n"
+ << " Quassel Core will still work, but cannot provide SSL for client connections.\n"
+ << " Please see http://quassel-irc.org/faq/cert to learn how to enable SSL support.";
+ sslWarningShown=true;
+ }