-
-
Notifications
You must be signed in to change notification settings - Fork 402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
core: add inspircd operprefix !/+y channel mode #1671
Conversation
Parsing supported modes from server connect spam is definitely on the road map. The current state annoys me, too! See #1536 for the parsing bit, after which we can rewrite the mode handling again to take advantage of the new data. Does this really need to touch the indentation? Not that I think we'll actually put this into 6.6.x, though, so maybe the best choice would be rebasing onto master. |
d2117d2
to
8fd350d
Compare
8fd350d
to
5a6e372
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Regardless of how I feel about adding these highly IRCd-specific modes/prefixes, if you're gonna add Insp3 stuff, might as well get it all 😁
Just to address my comment from the review:
I'm not a fan :/ According to modern specs, the only standard mode/prefixes are half-duplex:
... as (I believe) it should be. The bot does not need to recognize a server op as anyone special in a channel until they make themselves act that way. If they really needed to override things with the bot, they could just |
Until we can support custom/dynamic modes, ignoring |
6f1c60f
to
176b1bc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but until we have something better, this fixes it simply and without any obvious side effects
That's fair; plus, InspIRCd is pretty common, so might as well have it in here until we have something better™
176b1bc
to
007c708
Compare
I disagree with this. No one should be astonished that a non-standard mode is not handled. At present I honestly don't intend to merge this. Maybe if we can't get proper dynamic mode handling done for 7.0, it can go in as a stopgap. But if #1536 and follow-ups proceed apace, we shouldn't need it.
*sprays water* Or we can just implement something better™ the first time! |
b5e4a1d
to
7821080
Compare
Updated Just In Case™. I still don't really like this change. |
@half-duplex I asked this on IRC, but for the sake of keeping the conversation together: Would you be interested in implementing "proper" mode parsing based on the server's Understandable if you want to leave it for a future release, though. 7.0 is going to come out this month no matter what if I have anything to say about it, and we might have to alter some API (e.g. the privilege constants in |
Co-Authored-By: Humorous Baby <humorbaby@humorbaby.net>
7821080
to
02d1638
Compare
Ended up not finishing 7.0 in time for my long (and very busy) overseas trip, so here we are in the next month with another rebase. No way am I delaying 7.0 again to design dynamic mode parsing/handling, so looks like this will get to be a stopgap after all. When merging, I'll make sure we have an issue to remind us about dynamic mode/prefix parsing. |
See #2197 for prefix parsing 😄 |
On inspircd 3 with the operprefix module, as oper, create a channel. You'll have
!
. Add the bot. The bot sees you as having no modes (0
), and you can't do anything until you +o yourself.Might not be a 6.6.x thing, but if I don't open this now I'm not going to remember.
Future enhancements: