I was testing a script to prevent the bot from rejoin a channel on kick/ban.
The script is the following:
bind kick - * disable_chan_on_kick
proc disable_chan_on_kick {nick uhost hand chan target reason} {
if {[isbotnick $target]} {
putlog "Being kicked from $chan - setting it inactive"
channel set $chan +inactive
return 0
}
}
After kicking the bot I typed in partyline .chanset #channel -inactive and the bot didn't rejoin.
I had to use .dump join #channel to make it join the channel.
Output of .tcl putlog "$::version": 1.10.0+pythonfixes 1100005
The way I trigger the issue is:
- Load the script on the bot
- Kick the bot from the channel
- Type
.chaninfo #channel in the partyline to be sure the channel is set as +inactive
- Type
.chanset #channel -inactive
- Bot doesn't rejoin