logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git

0006-Send-CAP-END-on-RPL_SASLSUCCESS.patch (1370B)


  1. From e8bda36978b91df532394a10e66589272f549959 Mon Sep 17 00:00:00 2001
  2. From: Michael Forney <mforney@mforney.org>
  3. Date: Thu, 19 Mar 2026 02:48:24 -0700
  4. Subject: [PATCH] Send CAP END on RPL_SASLSUCCESS
  5. soju does not send 900 RPL_LOGGEDIN after SASL authentication[0]
  6. in order to show the one from the upstream network.
  7. We already sent CAP END *unless* doing SASL, so it makes sense to
  8. look for 903 RPL_SASLSUCCESS to send CAP END when we *are* doing
  9. SASL.
  10. [0] https://github.com/ircv3/ircv3-specifications/pull/476
  11. ---
  12. handle.c | 4 ++--
  13. 1 file changed, 2 insertions(+), 2 deletions(-)
  14. diff --git a/handle.c b/handle.c
  15. index b973161..1c13343 100644
  16. --- a/handle.c
  17. +++ b/handle.c
  18. @@ -252,7 +252,7 @@ static void handleAuthenticate(struct Message *msg) {
  19. explicit_bzero(self.plainPass, strlen(self.plainPass));
  20. }
  21. -static void handleReplyLoggedIn(struct Message *msg) {
  22. +static void handleReplySASLSuccess(struct Message *msg) {
  23. (void)msg;
  24. ircFormat("CAP END\r\n");
  25. handleReplyGeneric(msg);
  26. @@ -1403,7 +1403,7 @@ static const struct Handler {
  27. { "704", +ReplyHelp, handleReplyHelp },
  28. { "705", +ReplyHelp, handleReplyHelp },
  29. { "706", -ReplyHelp, NULL },
  30. - { "900", 0, handleReplyLoggedIn },
  31. + { "903", 0, handleReplySASLSuccess },
  32. { "904", 0, handleErrorSASLFail },
  33. { "905", 0, handleErrorSASLFail },
  34. { "906", 0, handleErrorSASLFail },
  35. --
  36. 2.49.0