all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#39345: 28.0.50; rcirc-authenticate-before-join due to case sensitive mismatch
@ 2020-01-29 14:29 Jake Nelson
  2020-01-29 15:20 ` Noam Postavsky
  0 siblings, 1 reply; 4+ messages in thread
From: Jake Nelson @ 2020-01-29 14:29 UTC (permalink / raw)
  To: 39345

1. join irc.freenode.net with a lowercase nick "examplenick"
2. authenticate to nickserv
3. nickserv echos back  "-NickServ- You are now identified for
"Examplenick" capitalizing the nickname.
4. rcirc-authenticate-before-join does not trigger, so no channels are
auto-joined.

The existing check is case sensitive.  The patch below fixes the issue
for me on freenode.

diff --git a/lisp/net/rcirc.el b/lisp/net/rcirc.el
index 5722582ab6..b516c8d0a6 100644
--- a/lisp/net/rcirc.el
+++ b/lisp/net/rcirc.el
@@ -2624,12 +2624,12 @@ rcirc-check-auth-status
         (when (or
                (and ;; nickserv
                 (string= sender "NickServ")
-                (string= target rcirc-nick)
-                (member message
+                (string= (downcase target) (downcase rcirc-nick))
+                (member (downcase message)
                         (list
-                         (format "You are now identified for
\C-b%s\C-b." rcirc-nick)
-                        (format "You are successfully identified as
\C-b%s\C-b." rcirc-nick)
-                         "Password accepted - you are now recognized."
+                         (downcase (format "You are now identified
for \C-b%s\C-b." rcirc-nick))
+                        (downcase (format "You are successfully
identified as \C-b%s\C-b." rcirc-nick))
+                         (downcase "Password accepted - you are now
recognized.")
                          )))
                (and ;; quakenet
                 (string= sender "Q")





^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-03-13  1:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-29 14:29 bug#39345: 28.0.50; rcirc-authenticate-before-join due to case sensitive mismatch Jake Nelson
2020-01-29 15:20 ` Noam Postavsky
2020-01-29 17:59   ` Jake Nelson
2020-03-13  1:30     ` Noam Postavsky

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.