/***************************************************************************
- * Copyright (C) 2005-2020 by the Quassel Project *
+ * Copyright (C) 2005-2022 by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
// Handle special cases first
if (capability == IrcCap::SASL) {
// Only request SASL if it's enabled
- if (networkInfo().useSasl)
+ if (useSasl()) {
queueCap(capability);
+ }
}
else if (IrcCap::knownCaps.contains(capability)) {
// Handling for general known capabilities
else {
// No pending desired capabilities, capability negotiation finished
// If SASL requested but not available, print a warning
- if (networkInfo().useSasl && !capEnabled(IrcCap::SASL))
+ if (useSasl() && !capEnabled(IrcCap::SASL))
showMessage(NetworkInternalMessage(
Message::Error,
BufferInfo::StatusBuffer,