Skip to content

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

@TehPeGaSuS

Description

@TehPeGaSuS

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions