]> git.eshelyaron.com Git - emacs.git/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:33:01 +0000 (21:33 +0100)
* lisp/erc/erc.el (erc-channel-receive-names): Fix errors
generated when multiple IRC clients talk to a single IRC proxy
(bug#19034).

lisp/erc/erc.el

index cd8c8a817e18fb222d2df3ed731f42f7b19facf6..126cac68a7b23352796242a2c0335898883a3d5c 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