[DONE] Timed channel bans
Posted: Wed Jul 26, 2017 9:28 pm
A much requested feature. =] Allows you to give channel bans (+b etc) an expiration time, using extbans. ;] Since it's integrated with channel mode +b, you need halfops or higher to be able to use it. The resolution for the expiration time is 1 minute; less than that seems useless to me anyways. Also, the module doesn't check for expirations every second (does every 15 though). It unsets as many bans per "line" as possible (either 8 masks or a total char length of >= 200).
I tested this across 30 channels with 48 bans for each, it walks through them in less than a second. ;];];]
Usage:
Simply do /mode #chan +b ~t:<EXPIRATION>:<BANMASK>
The banmask is your regular wildcard-enabled nick!user@host mask. Expiration is a "timestring" (see below). Also, if you add a banmask which Unreal already knows it will emit an error. I'm not replacing bans simply because a person (and not some code ;]) should decide which expiration time should be active.
Examples:
Get it here.
I tested this across 30 channels with 48 bans for each, it walks through them in less than a second. ;];];]
Usage:
Simply do /mode #chan +b ~t:<EXPIRATION>:<BANMASK>
The banmask is your regular wildcard-enabled nick!user@host mask. Expiration is a "timestring" (see below). Also, if you add a banmask which Unreal already knows it will emit an error. I'm not replacing bans simply because a person (and not some code ;]) should decide which expiration time should be active.
Examples:
- /mode #chan +b ~t:60:Guest*!*@*
- /mode #chan +b ~t:1h5m:Guest*!*@*
- /mode #chan +b ~t:3d4h1m:Guest*!*@*
Get it here.