all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Emacs Watcher <emacswatcher@gmail.com>
Cc: 20695@debbugs.gnu.org
Subject: 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	[thread overview]
Message-ID: <878u4feng8.fsf@gnus.org> (raw)
In-Reply-To: <87lh8feouw.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 27 Dec 2015 19:19:19 +0100")

Lars Ingebrigtsen <larsi@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





  reply	other threads:[~2015-12-27 18:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-30  1:53 bug#20695: 25.0.50; ERC Multiple connections to the same server results in message routing errors Emacs Watcher
2015-12-27 18:19 ` Lars Ingebrigtsen
2015-12-27 18:49   ` Lars Ingebrigtsen [this message]
2015-12-27 19:26   ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878u4feng8.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=20695@debbugs.gnu.org \
    --cc=emacswatcher@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.