- if (e->params().at(2).startsWith("sasl")) { // Freenode (at least) sends "sasl " with a trailing space for some reason!
- // FIXME use event
- // if the current identity has a cert set, use SASL EXTERNAL
+ if (e->params().at(1) == "NAK") {
+ // CAP REQ sasl was denied
+ coreNetwork(e)->putRawLine("CAP END");
+ }
+ else if (e->params().at(1) == "ACK") {
+ if (e->params().at(2).startsWith("sasl")) { // Freenode (at least) sends "sasl " with a trailing space for some reason!
+ // FIXME use event
+ // if the current identity has a cert set, use SASL EXTERNAL