Add capAvailable to Network akin to capEnabled
authorShane Synan <digitalcircuit36939@gmail.com>
Sun, 4 Dec 2016 05:43:10 +0000 (23:43 -0600)
committerManuel Nickschas <sputnick@quassel-irc.org>
Wed, 12 Apr 2017 21:30:16 +0000 (23:30 +0200)
commitb2c3e61e5888741644b24f5b3701a6311ec631dd
treefc60b1af43974463efcfe7dcbf8e19896ad5f9e5
parent0b983b0d9364e62db0b5e6cf25988ef8041a0c5d
Add capAvailable to Network akin to capEnabled

Add capAvailable to Network, checking if the server advertised the
given capability.  This mimics capEnabled, but applies regardless of
whether or not Quassel requested the capability.

This is useful for showing elsewhere whether or not a certain
capability could've been requested.

Use this in Network::saslMaybeSupports to avoid falsely claiming SASL
support when the SASL capability wasn't advertised.  This matches the
behavior of CoreNetwork.
src/common/network.cpp
src/common/network.h