Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bot doesn't rejoin channel set as +inactive by a script, after using .chanset #channel -inactive #1723

Open
TehPeGaSuS opened this issue Dec 22, 2024 · 0 comments

Comments

@TehPeGaSuS
Copy link
Contributor

TehPeGaSuS commented Dec 22, 2024

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:

  1. Load the script on the bot
  2. Kick the bot from the channel
  3. Type .chaninfo #channel in the partyline to be sure the channel is set as +inactive
  4. Type .chanset #channel -inactive
  5. Bot doesn't rejoin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant