mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 00:39:13 +00:00
feat(irc): disable auto chan part when using bouncer (#1396)
* don't part if using bouncer * refactor(irc): move bouncer part logic * refactor(irc): move bouncer part channel logic --------- Co-authored-by: ze0s <43699394+zze0s@users.noreply.github.com>
This commit is contained in:
parent
6e62c30d68
commit
1f31c9b063
1 changed files with 6 additions and 0 deletions
|
@ -774,6 +774,12 @@ func (h *Handler) handlePart(msg ircmsg.Message) {
|
|||
|
||||
// PartChannel parts/leaves channel
|
||||
func (h *Handler) PartChannel(channel string) error {
|
||||
// if using bouncer we do not want to part any channels
|
||||
if h.network.UseBouncer {
|
||||
h.log.Debug().Msgf("using bouncer, skip part channel %s", channel)
|
||||
return nil
|
||||
}
|
||||
|
||||
h.log.Debug().Msgf("Leaving channel %s", channel)
|
||||
|
||||
return h.Send("PART", channel)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue