As is, SASL authentication fails against InspIRCd 3.10.0 & Anope 2.0.9 (FreeBSD). Checking the arguments in the CAP message, arg 2 presents as 'sasl' without a trailing space. In this particular case, removing the space allows successful authentication. Checking that the string.startsWith('sasl') presumably handles both cases without introducing much risk. [Alternatively, we can check against both strings explicitly.]
As is, SASL authentication fails against InspIRCd 3.10.0 & Anope 2.0.9 (FreeBSD). Checking the arguments in the CAP message, arg 2 presents as 'sasl' without a trailing space. In this particular case, removing the space allows successful authentication. Checking that the string.startsWith('sasl') presumably handles both cases without introducing much risk. [Alternatively, we can check against both strings explicitly.]