mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-27 07:37:33 +00:00
Autojoin channels with same name on different servers in erc
* lisp/erc/erc-join.el (erc-autojoin-channels): Join channels with the same name on different servers (bug#32723). Copyright-paperwork-exempt: yes
This commit is contained in:
parent
0b7494414a
commit
63b29f8107
@ -161,6 +161,10 @@ This function is run from `erc-nickserv-identified-hook'."
|
|||||||
;; Only auto-join the channels that we aren't already in
|
;; Only auto-join the channels that we aren't already in
|
||||||
;; using a different nick.
|
;; using a different nick.
|
||||||
(when (or (not buffer)
|
(when (or (not buffer)
|
||||||
|
;; If the same channel is joined on another
|
||||||
|
;; server the best-effort is to just join
|
||||||
|
(not (string-match (car l)
|
||||||
|
(process-name erc-server-process)))
|
||||||
(not (with-current-buffer buffer
|
(not (with-current-buffer buffer
|
||||||
(erc-server-process-alive))))
|
(erc-server-process-alive))))
|
||||||
(erc-server-join-channel server chan))))))))
|
(erc-server-join-channel server chan))))))))
|
||||||
|
Loading…
Reference in New Issue
Block a user