From: Steve Scott <steve@stevescott.ca>
To: Noam Postavsky <npostavs@gmail.com>
Cc: 10162@debbugs.gnu.org
Subject: bug#10162: [PATCH] 24.0.91; rcirc autojoin broken (freenode/oftc) when rcirc-authenticate-before-join is set
Date: Mon, 03 Jun 2019 19:54:16 -0300 [thread overview]
Message-ID: <87ef4a9t5z.fsf@stevescott.ca> (raw)
In-Reply-To: <87y32i48ny.fsf@gmail.com>
There are three cases, and authenticate needs to be called for two of them:
1) auto-authenticate + authenticate-before-join
Use the hook to ensure authentication completes before joining.
2) auto-authenticate but not "before join"
In this case, authenticate must still be called but the hook is not
required because the order is not important.
3) no auto-authenticate
Just join the channels without authenticating.
The "Otherwise" comment refers to the 3rd case:
if auto-authenticate is set but no authinfo is specified we just join
the channels.
I'm not sure authenticate-before-join is even necessary. I would
recommend authenticating before joining be the way it works but that's
probably a separate discussion.
Noam Postavsky writes:
> Steve Scott <steve@stevescott.ca> writes:
>
>> Since the hostname returned by irc.freenode.net can be something other
>> than irc.freenode.net, e.g. niven.freenode.net, the entries for
>> rcirc-authinfo and rcirc-server-alist will not match.
>
> Thanks, I was hitting this, and based on your explanation, I changed my
> rcirc-authinfo entry to "[.]freenode[.]net\\'" instead of
> "irc.freenode.net" and autojoin started working.
>
>> + (if (and rcirc-auto-authenticate-flag
>> + ;; We have to ensure that there's an authentication
>> + ;; entry for that server. Otherwise,
>> + ;; there's no point in calling authenticate.
>> + (let (auth-required)
>> + (dolist (s rcirc-authinfo auth-required)
>> + (when (string-match (car s) rcirc-server)
>> + (setq auth-required t)))))
>> + (if rcirc-authenticate-before-join
>
> But it looks like we're still calling authenticate, even in the
> "otherwise" case, even though you say there's no point?
next prev parent reply other threads:[~2019-06-03 22:54 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-30 0:50 bug#10162: 24.0.91; rcirc autojoin broken (freenode/oftc) when rcirc-authenticate-before-join is set Trent W. Buck
2012-10-29 11:23 ` Chong Yidong
2012-12-04 23:32 ` Deniz Dogan
2012-12-05 0:33 ` Trent W. Buck
2017-02-17 1:18 ` Trent W. Buck
2019-06-03 0:55 ` bug#10162: [PATCH] " Steve Scott
2019-06-03 22:16 ` Noam Postavsky
2019-06-03 22:54 ` Steve Scott [this message]
2019-06-06 0:34 ` Noam Postavsky
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ef4a9t5z.fsf@stevescott.ca \
--to=steve@stevescott.ca \
--cc=10162@debbugs.gnu.org \
--cc=npostavs@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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).