solanum-ircd / solanum

An IRCd for unified networks
https://solanum.chat/
GNU General Public License v2.0
216 stars 53 forks source link

Add extban type for unidentified connections #411

Closed TheDaemoness closed 1 year ago

TheDaemoness commented 1 year ago

This PR adds the extb_guest extension. It provides the g extban, which acts as a normal nick!user@host/range ban except it only matches unidentified connections.

Channel mode r can be very useful for channel operators to mitigate abuse, however it is frequently too broad. Oftentimes it is only necessary to require accounts from specific ranges, allowing unregistered users from other ranges or registered users from the abused range to join unimpeded.

Currently, there does not seem to be a clean way of doing this without either extb_combi or auto-kicking bots/services. This extension is meant to provide a solution that can (hopefully) be loaded on Libera in the near future.

xfnw commented 1 year ago

could you document this in the extban helptext too? (in help/opers/extban)

TheDaemoness commented 1 year ago

Done! I chose the word "exclude" as opposed to "does not match" because the description fits on a single line that way; let me know if there are clarity concerns.