]> code.delx.au - gnu-emacs/commitdiff
Proxy error in erc with multiple clients
authorDavid Edmondson <dme@dme.org>
Sun, 27 Dec 2015 20:33:01 +0000 (21:33 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 27 Dec 2015 20:34:19 +0000 (21:34 +0100)
* 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

index 04e99c7b88422773fb02f06a3bf2df1f42c842c5..2b22bd55ccc4ca09fa435365d26b0f125601d2ff 100644 (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