aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTassilo Horn2011-03-31 14:19:17 +0200
committerTassilo Horn2011-03-31 14:19:17 +0200
commit221ddf68cb70826c9cb889c44d7e97e9fc9ea856 (patch)
tree1c3873f916f1e4a6bd0710f74d18f9c91632d71b
parente040639fd98db525bb4e36268a057fc6c2f6c0ae (diff)
downloademacs-221ddf68cb70826c9cb889c44d7e97e9fc9ea856.tar.gz
emacs-221ddf68cb70826c9cb889c44d7e97e9fc9ea856.zip
* net/rcirc.el (rcirc-handler-001): Only authenticate, if there's
an entry for that server in rcirc-authinfo. (Bug#8385)
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/net/rcirc.el10
2 files changed, 14 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 933eb2bd94e..8c42864ae30 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12011-03-31 Tassilo Horn <tassilo@member.fsf.org>
2
3 * net/rcirc.el (rcirc-handler-001): Only authenticate, if there's
4 an entry for that server in rcirc-authinfo. (Bug#8385)
5
12011-03-31 Glenn Morris <rgm@gnu.org> 62011-03-31 Glenn Morris <rgm@gnu.org>
2 7
3 * progmodes/f90.el (f90-find-tag-default): Handle multiple `%'. 8 * progmodes/f90.el (f90-find-tag-default): Handle multiple `%'.
diff --git a/lisp/net/rcirc.el b/lisp/net/rcirc.el
index eb4ad01ecd7..5822fc3cf32 100644
--- a/lisp/net/rcirc.el
+++ b/lisp/net/rcirc.el
@@ -2454,7 +2454,15 @@ keywords when no KEYWORD is given."
2454 (setq rcirc-nick (car args)) 2454 (setq rcirc-nick (car args))
2455 (rcirc-update-prompt) 2455 (rcirc-update-prompt)
2456 (if rcirc-auto-authenticate-flag 2456 (if rcirc-auto-authenticate-flag
2457 (if rcirc-authenticate-before-join 2457 (if (and rcirc-authenticate-before-join
2458 ;; We have to ensure that there's an authentication
2459 ;; entry for that server. Else,
2460 ;; rcirc-authenticated-hook won't be triggered, and
2461 ;; autojoin won't happen at all.
2462 (let (auth-required)
2463 (dolist (s rcirc-authinfo auth-required)
2464 (when (string-match (car s) rcirc-server-name)
2465 (setq auth-required t)))))
2458 (progn 2466 (progn
2459 (add-hook 'rcirc-authenticated-hook 'rcirc-join-channels-post-auth t t) 2467 (add-hook 'rcirc-authenticated-hook 'rcirc-join-channels-post-auth t t)
2460 (rcirc-authenticate)) 2468 (rcirc-authenticate))