//Numeric.RPL_SASLMECHS import std.algorithm.searching : canFind; import std.range : only, takeNone; { auto logon = parseNumeric!(Numeric.RPL_SASLMECHS)(only("test", "EXTERNAL,PLAIN", "Well hello there")); assert(logon.get.canFind("EXTERNAL")); assert(logon.get.canFind("PLAIN")); } { immutable logon = parseNumeric!(Numeric.RPL_SASLMECHS)(takeNone(only(""))); assert(logon.isNull); } { immutable logon = parseNumeric!(Numeric.RPL_SASLMECHS)(only("test")); assert(logon.isNull); }
RPL_SASLMECHS. This is sent in response to a request for a mechanism the server does not support, and will list any mechanisms that are available.
Format is 908 <nick> <mechanisms> :are available SASL mechanisms