GNU bug report logs -
#50908
[PATCH] erc-user-mode: Set "+i" by default
Previous Next
Reported by: Stefan Kangas <stefan <at> marxist.se>
Date: Thu, 30 Sep 2021 00:09:02 UTC
Severity: wishlist
Tags: patch
Done: Amin Bandali <bandali <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 50908 in the body.
You can then email your comments to 50908 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bandali <at> gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#50908
; Package
emacs
.
(Thu, 30 Sep 2021 00:09:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Stefan Kangas <stefan <at> marxist.se>
:
New bug report received and forwarded. Copy sent to
bandali <at> gnu.org, bug-gnu-emacs <at> gnu.org
.
(Thu, 30 Sep 2021 00:09:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Severity: wishlist
Hi Amin,
What do you think of this ERC patch to enable the "+i" user flag by
default. This hides a user from global /who and /names, thus providing
(very marginally) better privacy and protection from spam bots and
similarly abusive behaviour.
It seems to be supported pretty ubiquitously:
https://libera.chat/guides/usermodes
https://www.unrealircd.org/docs/User_Modes
http://www.efnet.org/?module=docs&doc=15
https://freenode.net/kb/answer/usermodes
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#50908
; Package
emacs
.
(Fri, 01 Oct 2021 05:48:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 50908 <at> debbugs.gnu.org (full text, mbox):
Hi Stefan,
Stefan Kangas writes:
> Severity: wishlist
>
> Hi Amin,
>
> What do you think of this ERC patch to enable the "+i" user flag by
> default. This hides a user from global /who and /names, thus providing
> (very marginally) better privacy and protection from spam bots and
> similarly abusive behaviour.
ENOPATCH :)
This sounds like a good thing to do.
Other folks reading emacs-erc@, what do you think?
> It seems to be supported pretty ubiquitously:
>
> https://libera.chat/guides/usermodes
> https://www.unrealircd.org/docs/User_Modes
> http://www.efnet.org/?module=docs&doc=15
> https://freenode.net/kb/answer/usermodes
>
>
>
--
https://bndl.org
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#50908
; Package
emacs
.
(Fri, 01 Oct 2021 11:16:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 50908 <at> debbugs.gnu.org (full text, mbox):
Amin Bandali <bandali <at> gnu.org> writes:
> > What do you think of this ERC patch to enable the "+i" user flag by
> > default. This hides a user from global /who and /names, thus providing
> > (very marginally) better privacy and protection from spam bots and
> > similarly abusive behaviour.
>
> ENOPATCH :)
Oops. I'm not at my computer this weekend, so I'll send it later.
Basically it just sets erc-user-mode to "+i" and adds a comment that
explains the "+i" flag.
> This sounds like a good thing to do.
> Other folks reading emacs-erc@, what do you think?
IIUC, "+i" is the default that irssi has:
https://irssi.org/documentation/settings/#usermode
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#50908
; Package
emacs
.
(Fri, 01 Oct 2021 12:24:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 50908 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Amin Bandali <bandali <at> gnu.org> writes:
> This sounds like a good thing to do.
> Other folks reading emacs-erc@, what do you think?
>
>> It seems to be supported pretty ubiquitously:
>>
>> https://libera.chat/guides/usermodes
>> https://www.unrealircd.org/docs/User_Modes
>> http://www.efnet.org/?module=docs&doc=15
>> https://freenode.net/kb/answer/usermodes
Pretty sure Libera.Chat does this for you by default, at least for
registered users. I didn't bother checking the new Freenode due to the
recent "must register at irc.com" policy (but I certainly can). Also
didn't try EFNet, though I'm fairly certain they're the lone exception
here (as in they *don't* auto +i you). Logs from other nets/ircds
attached (all auto +i).
[chary.log (text/plain, attachment)]
[ergo.log (text/plain, attachment)]
[hybrid.log (text/plain, attachment)]
[inspircd.log (text/plain, attachment)]
[oftc.log (text/plain, attachment)]
[unreal.log (text/plain, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#50908
; Package
emacs
.
(Sat, 02 Oct 2021 02:35:01 GMT)
Full text and
rfc822 format available.
Message #17 received at 50908 <at> debbugs.gnu.org (full text, mbox):
Stefan Kangas writes:
> Amin Bandali <bandali <at> gnu.org> writes:
>
>> > What do you think of this ERC patch to enable the "+i" user flag by
>> > default. This hides a user from global /who and /names, thus providing
>> > (very marginally) better privacy and protection from spam bots and
>> > similarly abusive behaviour.
>>
>> ENOPATCH :)
>
> Oops. I'm not at my computer this weekend, so I'll send it later.
> Basically it just sets erc-user-mode to "+i" and adds a comment that
> explains the "+i" flag.
Cool; no rush here. :) I'll await your patch next week then.
>> This sounds like a good thing to do.
>> Other folks reading emacs-erc@, what do you think?
>
> IIUC, "+i" is the default that irssi has:
> https://irssi.org/documentation/settings/#usermode
>
Nice, good to know. Since other clients (and some networks) also do
this out of the box, I'd welcome the change in ERC as well.
--
https://bndl.org
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#50908
; Package
emacs
.
(Sat, 02 Oct 2021 02:39:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 50908 <at> debbugs.gnu.org (full text, mbox):
J.P. writes:
> Amin Bandali <bandali <at> gnu.org> writes:
>
>> This sounds like a good thing to do.
>> Other folks reading emacs-erc@, what do you think?
>>
>>> It seems to be supported pretty ubiquitously:
>>>
>>> https://libera.chat/guides/usermodes
>>> https://www.unrealircd.org/docs/User_Modes
>>> http://www.efnet.org/?module=docs&doc=15
>>> https://freenode.net/kb/answer/usermodes
>
> Pretty sure Libera.Chat does this for you by default, at least for
> registered users. I didn't bother checking the new Freenode due to the
> recent "must register at irc.com" policy (but I certainly can). Also
> didn't try EFNet, though I'm fairly certain they're the lone exception
> here (as in they *don't* auto +i you). Logs from other nets/ircds
> attached (all auto +i).
>
Thanks checking! Yeah Libera.Chat does this even for non-logged-in
users (if I recall correctly), and good to see some other nets/ircds
do the same. No worries about the new Freenode.
I'll review and merge Stefan's patch once he sends it.
Thanks.
--
https://bndl.org
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#50908
; Package
emacs
.
(Mon, 04 Oct 2021 01:48:01 GMT)
Full text and
rfc822 format available.
Message #23 received at 50908 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Amin Bandali <bandali <at> gnu.org> writes:
> I'll review and merge Stefan's patch once he sends it.
See attached.
[0001-lisp-erc-erc.el-erc-user-mode-Set-i-by-default.patch (text/x-diff, attachment)]
Reply sent
to
Amin Bandali <bandali <at> gnu.org>
:
You have taken responsibility.
(Mon, 04 Oct 2021 03:17:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Stefan Kangas <stefan <at> marxist.se>
:
bug acknowledged by developer.
(Mon, 04 Oct 2021 03:17:02 GMT)
Full text and
rfc822 format available.
Message #28 received at 50908-done <at> debbugs.gnu.org (full text, mbox):
Stefan Kangas writes:
> Amin Bandali <bandali <at> gnu.org> writes:
>
>> I'll review and merge Stefan's patch once he sends it.
>
> See attached.
>
>
Thanks, merged.
To git.savannah.gnu.org:/srv/git/emacs.git
d00f3d4c05..595e506c82 emacs-28 -> emacs-28
--
https://bndl.org
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#50908
; Package
emacs
.
(Tue, 05 Oct 2021 04:10:02 GMT)
Full text and
rfc822 format available.
Message #31 received at 50908-done <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Before this gets archived, I'd like to highlight what I feel to be a
closely related issue possibly deserving some discussion at some point,
namely, the absence of user modes among ERC's other user-state tracking.
If you take a look at `erc-set-modes' and friends [1], you'll see that
those who came before kicked the can down the road slightly when it came
to this feature. From the placeholders and comments, it's unclear to me
whether they were expressing ("owning") an intent to abstain or whether
plans merely petered out (my guess).
It's also unclear to me to what extent current users just assume this
has already been implemented. (Until very recently, I could have counted
myself among the casualties.) Which is not to say I think user-mode
naivete as a conscious policy choice is the worst thing ever. However,
users who associate featurefulness with user-state omniscience probably
feel otherwise.
In terms of tradeoffs, one less obvious benefit [2] of replacing those
placeholders with the necessary smarts might be a smidge less congestion
early on in the `erc-server-flood-queue' [3]. As far as drawbacks,
there's probably some research required [4] in addition to the usual
added stress of taking on more complexity [5].
I didn't raise any of this earlier for fear of appearing dismissive of
this patch as some kind of half measure (and thereby somehow keen on
forestalling its installation). Thanks.
P.S. Someone should tell Ergo not to fire off a second 221 when a client
issues an early MODE command, as ERC now does (see attached).
Notes
~~~~~
[1] Like `erc-update-modes' and also the response handlers
`erc-server-MODE' and `erc-server-221'.
[2] Among the traditional benefits would be modes featuring more
prominently in the UI (see popular standalone clients), possibly
with a legend/widget thingy to explain the letters. Third party
packages may also appreciate being able to check modes without
adding custom handlers.
[3] Which is helpful in testing and maybe also in module/user code
running on MOTD hooks (and also perhaps for folks stuck using
NickServ).
[4] That is, assuming we'd even bother keeping up with the various pet
modes offered by the major networks. Also, the nonstandard ISUPPORT
param "USERMODES" may be worth a quick look.
[5] For example, going this route would likely introduce at least one
local variable along with the need to wrangle yet another timer
(spawned from the same 376/422 handler).
[ergo.log (text/plain, attachment)]
[ergo-server-buffer.log (text/plain, attachment)]
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 02 Nov 2021 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 3 years and 227 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.