Page 1 of 1

Unreal 6.0.0 : prefixes for chanadmin and chanowner

Posted: Tue Dec 28, 2021 5:29 pm
by CrazyCat
Hi there,

I can't find the option to deactivate the prefixes for chanadmin and chanowner (& and ~).
After doing the upgrade, I had the bad surprise to notice they were activated. So I tried to recompile from the source, the option doesn't exists.

Did I forget something ?

Re: Unreal 6.0.0 : prefixes for chanadmin and chanowner

Posted: Tue Dec 28, 2021 5:34 pm
by k4be
Quoting release notes:
The five level modes (+vhoaq) are now also modular. They are all loaded by default but you can blacklist one or more if you don't want them. For example to disable halfop: blacklist-module chanmodes/halfop;

Re: Unreal 6.0.0 : prefixes for chanadmin and chanowner

Posted: Tue Dec 28, 2021 5:38 pm
by CrazyCat
No, this option seems to remove the levels, I want to not use the prefixes but keep the a and q levels.
Support for compiling without PREFIX_AQ has been removed because people often confused it with disabling +a/+q which is something different.
I want to compile with this, and having a and q show as @ only

Re: Unreal 6.0.0 : prefixes for chanadmin and chanowner

Posted: Tue Dec 28, 2021 5:48 pm
by Syzop
I'm afraid that is no longer an option in UnrealIRCd 6. The reason it existed in the first place was because at the time when +a/+q were added, additional prefixes did not exist yet and it basically functioned as a "list mode" (hence the ability to query via /MODE #channel q). Later on prefix support got added in all IRC clients out there and now this option is finally removed.

The "without prefixes" ./Config option wasn't just a matter of showing or not showing the prefix, actually. It also changed rules such as +q requiring +qo at some places, and not at other places. So:
  • At places where +q required +o as well: Someone with +q but without +o would be unable to perform an action that an ordinary chanop could, which is a bit confusing to the channel owner
  • At places where +q worked without +o: Someone without any prefix seemingly being able to do bypass things, which is confusing to bystanders (if they look at the nicklist they see someone with zero privileges).
It was not implemented consistently in the code and complicated things in the code because we normally check for like "if +h/+o/+a/+q" or like "any level/rank above xxx", and now you would need to have special treatment for not an OR but an OR a/b/c/(d AND c). That sort of stuff. And it's undertested because few people use it and thus is bound to have bugs/inconsistencies.

Now it is simple: every "rank" has a prefix. And you can (un)load them if you want or not.

(Edited 15 mins later for clarity)

Re: Unreal 6.0.0 : prefixes for chanadmin and chanowner

Posted: Thu Jan 06, 2022 7:55 am
by CrazyCat
Ok, the 6.0.1 works well after the correction of the issue #4454 but now I get lot of warn notice because of unknown mode setted by services (anope 2.0.10):

Code: Select all

08:24:41  Zeolia -- avalon.zeolia.net: mode.REMOTE_UNKNOWN_CHANNEL_MODE [warn] Server services.zeolia.net sent us an unknown channel mode +q!
08:24:42  Zeolia -- avalon.zeolia.net: mode.REMOTE_UNKNOWN_CHANNEL_MODE [warn] Server services.zeolia.net sent us an unknown channel mode +q!
08:24:42  Zeolia -- avalon.zeolia.net: mode.REMOTE_UNKNOWN_CHANNEL_MODE [warn] Server services.zeolia.net sent us an unknown channel mode +q!
08:24:42  Zeolia -- avalon.zeolia.net: mode.REMOTE_UNKNOWN_CHANNEL_MODE [warn] Server services.zeolia.net sent us an unknown channel mode +q!
I know I can disable the logging of warn notices, but I think it's quite annoying for ircops.

Short explanation : I don't want to make any "visual" difference between chanowners, chanadmins and chanops, but I don't want to receive warnings because some users are founders of their channel.
Or did I forget/miss something in anope settings ?

Re: Unreal 6.0.0 : prefixes for chanadmin and chanowner

Posted: Thu Jan 06, 2022 8:34 am
by Syzop
I think k4be was working on some anope code so it won't send MODE +q/+a if those chanmodes are not available. Not sure about the current status.

Re: Unreal 6.0.0 : prefixes for chanadmin and chanowner

Posted: Thu Jan 06, 2022 9:47 am
by CrazyCat
I'll ask about that on anope forum, thanks Syzop !

Re: Unreal 6.0.0 : prefixes for chanadmin and chanowner

Posted: Thu Jan 06, 2022 11:45 am
by Lord255
k4be made the changes on anope side (unreal4 protocol), Sadie (anope side) is checking the changes and will approve it if all fine.
(this is the latest status about it i presume)

here is the PR which he made:
https://github.com/anope/anope/pull/285

(if you are talkin about this.. :))