Make auto{op|voice} take advantage of MODES= #583

Open
opened 2026-10-05 04:31:22 +02:00 by adam · 1 comment
Owner

When you connect to a network, you get a bunch of stuff in the 005, for example, on freenode one of them is MODES=4. If we have four users to autovoice, znc will send four separate lines, for example:
/mode #channel +v nick1
/mode #channel +v nick2
/mode #channel +v nick3
/mode #channel +v nick4

ZNC should take advantage of the MODES= and send
`/mode #channel +vvvv nick1 nick2 nick3 nick4``.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

When you connect to a network, you get a bunch of stuff in the 005, for example, on freenode one of them is `MODES=4`. If we have four users to autovoice, znc will send four separate lines, for example: `/mode #channel +v nick1` `/mode #channel +v nick2` `/mode #channel +v nick3` `/mode #channel +v nick4` ZNC should take advantage of the `MODES=` and send `/mode #channel +vvvv nick1 nick2 nick3 nick4``. ## <bountysource-plugin> Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/26757363-make-auto-op-voice-take-advantage-of-modes?utm_campaign=plugin&utm_content=tracker%2F1759&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F1759&utm_medium=issues&utm_source=github). </bountysource-plugin> <!-- github-sync-id:106987565 -->
Author
Owner

The logic for this might not be ideal to be handled at module-level, could ZNC provide a helper function like SendModes(User, Channel, "+vv", "Zarthus KindOne") and automatically determine how to split it up?

The logic for this might not be ideal to be handled at module-level, could ZNC provide a helper function like `SendModes(User, Channel, "+vv", "Zarthus KindOne")` and automatically determine how to split it up? <!-- github-comment-id:141762764 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/znc#583