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)
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.


No differences found