/***************************************************************************
- * Copyright (C) 2005-2019 by the Quassel Project *
+ * Copyright (C) 2005-2020 by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
#include "coresessioneventprocessor.h"
+#include <algorithm>
+
#include "coreirclisthelper.h"
#include "corenetwork.h"
#include "coresession.h"
CoreNetwork* net = coreNetwork(e);
-#ifdef HAVE_SSL
if (net->identityPtr()->sslCert().isNull()) {
-#endif
QString construct = net->saslAccount();
construct.append(QChar(QChar::Null));
construct.append(net->saslAccount());
QByteArray saslData = QByteArray(construct.toLatin1().toBase64());
saslData.prepend("AUTHENTICATE ");
net->putRawLine(saslData);
-#ifdef HAVE_SSL
}
else {
net->putRawLine("AUTHENTICATE +");
}
-#endif
}
void CoreSessionEventProcessor::processIrcEventCap(IrcEvent* e)
QStringList supportedHandlers;
for (const QString& handler : providesHandlers())
supportedHandlers << handler.toUpper();
- qSort(supportedHandlers);
+ std::sort(supportedHandlers.begin(), supportedHandlers.end());
e->setReply(supportedHandlers.join(" "));
}