Page 1 of 1

[DONE] Prevent rejoining too fast after a kick

Posted: Thu Jan 19, 2017 10:52 pm
by Gottem
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.

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

Posted: Fri Jan 20, 2017 9:45 am
by alhoceima
tested it workz fine so far nice job once again there Gottem

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

Posted: Fri Jan 20, 2017 10:27 pm
by Gottem
Cool, thanks for the feedback fam. =]

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

Posted: Sat Jan 21, 2017 3:13 pm
by alhoceima
tested with updated latest release didnt seem to work no more as well

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

Posted: Tue Jan 24, 2017 9:59 pm
by Gottem
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.