[DONE] Prevent rejoining too fast after a kick

Need a module converted from 3.2.x to UnrealIRCd 4? Or looking for a certain module? Ask here.

Moderators: Gottem, Supporters

Post Reply
Gottem
Posts: 133
Joined: Fri Aug 19, 2016 5:26 pm
Location: NL

[DONE] Prevent rejoining too fast after a kick

Post by Gottem » Thu Jan 19, 2017 10:52 pm

My new module m_kickrejoindelay adds a chanmode +j <delay> to prevent people from rejoining "too fast" after a kick. You can set a delay of between 1 and 20 seconds, as anything higher might be a bit much. You gotta have at least +o to set the mode. Opers and U:Lines are exempt, as well as servers (just in case).

Get it right here.
If you like my modules, pls consider donating (through PayPal) or becoming a monthly Patron ;];]

alhoceima
Posts: 20
Joined: Mon Jul 18, 2016 10:35 pm

Re: [DONE] Prevent rejoining too fast after a kick

Post by alhoceima » Fri Jan 20, 2017 9:45 am

tested it workz fine so far nice job once again there Gottem

Gottem
Posts: 133
Joined: Fri Aug 19, 2016 5:26 pm
Location: NL

Re: [DONE] Prevent rejoining too fast after a kick

Post by Gottem » Fri Jan 20, 2017 10:27 pm

Cool, thanks for the feedback fam. =]
If you like my modules, pls consider donating (through PayPal) or becoming a monthly Patron ;];]

alhoceima
Posts: 20
Joined: Mon Jul 18, 2016 10:35 pm

Re: [DONE] Prevent rejoining too fast after a kick

Post by alhoceima » Sat Jan 21, 2017 3:13 pm

tested with updated latest release didnt seem to work no more as well

Gottem
Posts: 133
Joined: Fri Aug 19, 2016 5:26 pm
Location: NL

Re: [DONE] Prevent rejoining too fast after a kick

Post by Gottem » Tue Jan 24, 2017 9:59 pm

It seems to have been caused by HOOKTYPE_LOCAL_KICK not firing anymore after a /kick from a remote chanop. It used to work before I even added REMOTE_KICK so I left it like that, but now I've adjusted it anyways. =]

I also changed the ModInfo struct to attach to a client instead of a channel. This results in a shorter lifetime and thus, lower memory pressure. Because otherwise it would keep track of kicked users for a channel until the channel is destroyed (which almost never happens). If you ever get a bot flood you might end up having a load of entries that aren't really necessary and just eat up memory. But now, once they quit the memory is released. ;]

Grab the latest version from the git link in the OP, as per usual.
If you like my modules, pls consider donating (through PayPal) or becoming a monthly Patron ;];]

Post Reply