diff options
| author | Noam Postavsky | 2020-03-12 21:03:45 -0400 |
|---|---|---|
| committer | Noam Postavsky | 2020-03-12 21:06:28 -0400 |
| commit | 3758ff0f3ad365b7a56c3e63a8d0d5f00f3d5085 (patch) | |
| tree | 550b8016f4163f972d3cf3da295c8d073c50069d | |
| parent | bbc48b263485c26c6823eabdbbd7e9af62178e34 (diff) | |
| download | emacs-3758ff0f3ad365b7a56c3e63a8d0d5f00f3d5085.tar.gz emacs-3758ff0f3ad365b7a56c3e63a8d0d5f00f3d5085.zip | |
rcirc: Match NickServ messages case-insensitively (Bug#39345)
Reported by Jake Nelson <jake.nelson@gmail.com>.
* lisp/net/rcirc.el (rcirc-check-auth-status): NickServ will response
will show the nick in the same case used during registration, but
it allows case-insensitive matches when logging in. Therefore, we
should accept response messages regardless of case.
| -rw-r--r-- | lisp/net/rcirc.el | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/lisp/net/rcirc.el b/lisp/net/rcirc.el index a2234166903..1766e192f2d 100644 --- a/lisp/net/rcirc.el +++ b/lisp/net/rcirc.el | |||
| @@ -2626,12 +2626,16 @@ the only argument." | |||
| 2626 | (and ;; nickserv | 2626 | (and ;; nickserv |
| 2627 | (string= sender "NickServ") | 2627 | (string= sender "NickServ") |
| 2628 | (string= target rcirc-nick) | 2628 | (string= target rcirc-nick) |
| 2629 | (member message | 2629 | (cl-member |
| 2630 | (list | 2630 | message |
| 2631 | (format "You are now identified for \C-b%s\C-b." rcirc-nick) | 2631 | (list |
| 2632 | (format "You are successfully identified as \C-b%s\C-b." rcirc-nick) | 2632 | (format "You are now identified for \C-b%s\C-b." rcirc-nick) |
| 2633 | "Password accepted - you are now recognized." | 2633 | (format "You are successfully identified as \C-b%s\C-b." |
| 2634 | ))) | 2634 | rcirc-nick) |
| 2635 | "Password accepted - you are now recognized.") | ||
| 2636 | ;; The nick may have a different case, so match | ||
| 2637 | ;; case-insensitively (Bug#39345). | ||
| 2638 | :test #'cl-equalp)) | ||
| 2635 | (and ;; quakenet | 2639 | (and ;; quakenet |
| 2636 | (string= sender "Q") | 2640 | (string= sender "Q") |
| 2637 | (string= target rcirc-nick) | 2641 | (string= target rcirc-nick) |