1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

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 507e98a54d)
This commit is contained in:
David Edmondson 2015-12-27 21:33:01 +01:00 committed by Lars Ingebrigtsen
parent 2cd894dc34
commit af25edebbc

View file

@ -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