]> jfr.im git - irc/DALnet/bahamut.git/commit
Add more extended channel flags (XCF) (#67)
authorKobi Shmueli <redacted>
Thu, 4 Oct 2018 01:14:31 +0000 (04:14 +0300)
committerEmilio A. Escobar <redacted>
Thu, 4 Oct 2018 01:14:31 +0000 (18:14 -0700)
commit75f5283b38944800d81ea43c91e016272abaa5f4
tree9049267d26e5c4f3350f0e0d1c831018918ca8ff
parent7dd9e929c04db66b29f9c79e18545706b7165074
Add more extended channel flags (XCF) (#67)

* Add nick!user@host to the spamfilter warnings

This will make it easier for our mass akill scripts.

-Kobi.

* Cosmetic changes to the spamfilter warning

The warning will now say if the spammer was blocked, akilled or blocked+akilled.

-Kobi.

* Add MAX_INVITES XCF

This will let us increase the maximum invite list for specific channels.
The use case is regional channels that want to +I their region/country's IPs and use it in combination with cmode +R.

* Add HIDE_MODE_LISTS XCF

This will let us hide /mode #channel +b/+I/+e lists from non-ops.

There are a few use cases for this (especially when the list limits are increased for channels that are being regularly flooded):
1. Prevent users from disconnecting themselves for "SendQ Exceeded".
2. Prevent abusers from flooding the server with it.
3. Prevent abusers from knowing our flood-control exemption lists.

* Add USER_VERBOSE XCF

When enabled, the server will alert #channel-relay about failed commands due to channel modes or xflags.

This feature was suggested by Sara_Ks.

* Add OPER_VERBOSE XCF

When enabled, the server will alert +f opers about failed commands due to channel modes or xflags.

Similar to USER_VERBOSE but will combine all "relay channels" to one place for opers and will show the user's real hostname even if they have user host-masking enabled.

* Add FLOODWARN module hook

CHOOK_FLOODWARN is called during flood warnings to opers.

Params: 5: (aClient *source, aChannel *channel, int type, char *cmd, char *reason)

Returns: int (FLUSH_BUFFER would prevent the normal message from being sent)

* Don't verbose opers about +j failed joins

They will be getting these warnings from the throttles anyway.
include/hooks.h
include/struct.h
src/channel.c
src/m_services.c
src/modules.c
src/s_bsd.c
src/s_serv.c
src/s_user.c