]> git.99rst.org Git - irssi-scripts.irssi.org.git/commit
autorejoin: Add settings, general cleanup
authordequis <redacted>
Tue, 26 Sep 2017 05:40:01 +0000 (02:40 -0300)
committerdequis <redacted>
Tue, 26 Sep 2017 05:47:01 +0000 (02:47 -0300)
commitceef8e3db383aeba54a00a10aaeb0b4e258de3a0
tree23b0239957d71a91033f4bcf4bec86f953923e00
parente71b38d69a08bfe6bc8317e41f3b0730d43f4268
autorejoin: Add settings, general cleanup

This merges the idea of autorejoin_channels from the version of the
script at http://wouter.coekaerts.be/irssi/scripts/autorejoin.pl

The version in this repository had different indentation and the timeout
delay stuff, so the end result is nothing like that one. Also that one
says Public Domain. Whatever.

This adds two settings:

- autorejoin_delay: time in seconds, defaults to 5, as the old code.
  Can be set to 0 to autorejoin instantly (like the other script)
- autorejoin_channels: channels whitelisted for autorejoin, applies to
  all channels if empty.

Not a fan of having this enabled for all channels, but it's the most
backwards-compatible behavior with the version of the script that was in
this repo. The other version defaulted to nothing.

This also changes the timeout_add into timeout_add_once and cleans up
parameter passing and acttag handling.

Also a couple of s/kick/kicked/ from the other script
scripts/autorejoin.pl
git clone https://git.99rst.org/PROJECT