GNU bug report logs - #20695
25.0.50; ERC Multiple connections to the same server results in message routing errors

Previous Next

Package: emacs;

Reported by: Emacs Watcher <emacswatcher <at> gmail.com>

Date: Sat, 30 May 2015 02:01:03 UTC

Severity: normal

Tags: confirmed, fixed

Found in version 25.0.50

Fixed in version 25.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #13 received at 20695 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Emacs Watcher <emacswatcher <at> gmail.com>
Cc: 20695 <at> debbugs.gnu.org
Subject: Re: bug#20695: 25.0.50;
 ERC Multiple connections to the same server results in message
 routing errors
Date: Sun, 27 Dec 2015 19:49:43 +0100
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

>> 1. On connections beyond the first, the new user is instantly joined
>> to channels
>> the previous users were in.
>
> I can reproduce this bug.

It's because of this:

(defun erc-autojoin-channels (server nick)
  "Autojoin channels in `erc-autojoin-channels-alist'."

[...]

    ;; `erc-autojoin-timing' is `connect':
    (dolist (l erc-autojoin-channels-alist)
      (when (string-match (car l) server)
	(dolist (chan (cdr l))
	  (erc-server-join-channel server chan)))))
  ;; Return nil to avoid stomping on any other hook funcs.
  nil)

This code is meant to autojoin all channels you've previously been in,
but it doesn't check if you're already there using a different ident...

I'm quite unfamiliar with the erc code base, so I'm not quite sure what
the right fix here is.  

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 9 years and 150 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.