diff options
| author | Martin Kletzander | 2019-06-23 23:53:02 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2019-06-23 23:53:02 +0200 |
| commit | 63b29f81075a3fdca70348f023d3ebb37a4f2a63 (patch) | |
| tree | 4e7c7786050cc9c9b60f78c3eda93b2caf53afde | |
| parent | 0b7494414a1a921cdaa399159d30e56e71f99885 (diff) | |
| download | emacs-63b29f81075a3fdca70348f023d3ebb37a4f2a63.tar.gz emacs-63b29f81075a3fdca70348f023d3ebb37a4f2a63.zip | |
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
| -rw-r--r-- | lisp/erc/erc-join.el | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/erc/erc-join.el b/lisp/erc/erc-join.el index 896521eaf0a..c292fdbd797 100644 --- a/lisp/erc/erc-join.el +++ b/lisp/erc/erc-join.el | |||
| @@ -161,6 +161,10 @@ This function is run from `erc-nickserv-identified-hook'." | |||
| 161 | ;; Only auto-join the channels that we aren't already in | 161 | ;; Only auto-join the channels that we aren't already in |
| 162 | ;; using a different nick. | 162 | ;; using a different nick. |
| 163 | (when (or (not buffer) | 163 | (when (or (not buffer) |
| 164 | ;; If the same channel is joined on another | ||
| 165 | ;; server the best-effort is to just join | ||
| 166 | (not (string-match (car l) | ||
| 167 | (process-name erc-server-process))) | ||
| 164 | (not (with-current-buffer buffer | 168 | (not (with-current-buffer buffer |
| 165 | (erc-server-process-alive)))) | 169 | (erc-server-process-alive)))) |
| 166 | (erc-server-join-channel server chan)))))))) | 170 | (erc-server-join-channel server chan)))))))) |