[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-25 af25ede 1/2: Proxy error in erc with multiple cli
From: |
Lars Ingebrigtsen |
Subject: |
[Emacs-diffs] emacs-25 af25ede 1/2: Proxy error in erc with multiple clients |
Date: |
Sun, 27 Dec 2015 21:18:44 +0000 |
branch: emacs-25
commit af25edebbcb33e788a0f4f9619787417aa0834b8
Author: David Edmondson <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>
Proxy error in erc with multiple clients
* lisp/erc/erc.el (erc-channel-receive-names): Fix errors
generated when multiple IRC clients talk to a single IRC proxy
(bug#19034).
Backport:
(cherry picked from commit 507e98a54d1aa37823c64993d6b59257a82fe8f4)
---
lisp/erc/erc.el | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/lisp/erc/erc.el b/lisp/erc/erc.el
index 04e99c7..2b22bd5 100644
--- a/lisp/erc/erc.el
+++ b/lisp/erc/erc.el
@@ -4826,6 +4826,11 @@ channel."
(_ (error "Unknown prefix char `%S'" ch) voice))
'on)))
(when updatep
+ ;; If we didn't issue the NAMES request (consider two clients
+ ;; talking to an IRC proxy), `erc-channel-begin-receiving-names'
+ ;; will not have been called, so we have to do it here.
+ (unless erc-channel-new-member-names
+ (erc-channel-begin-receiving-names))
(puthash (erc-downcase name) t
erc-channel-new-member-names)
(erc-update-current-channel-member