mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 16:59:12 +00:00
feat(irc): support optional bot mode (#1246)
* feat(irc): set bot mode when the server supports it See https://ircv3.net/specs/extensions/bot-mode. * feat(irc): add a config option per network for bot mode
This commit is contained in:
parent
c6c74c7f3b
commit
f89a25d645
8 changed files with 67 additions and 10 deletions
|
@ -211,6 +211,10 @@ func (s *service) checkIfNetworkRestartNeeded(network *domain.IrcNetwork) error
|
|||
restartNeeded = true
|
||||
fieldsChanged = append(fieldsChanged, "bouncer addr")
|
||||
}
|
||||
if handler.BotMode != network.BotMode {
|
||||
restartNeeded = true
|
||||
fieldsChanged = append(fieldsChanged, "bot mode")
|
||||
}
|
||||
if handler.Auth.Mechanism != network.Auth.Mechanism {
|
||||
restartNeeded = true
|
||||
fieldsChanged = append(fieldsChanged, "auth mechanism")
|
||||
|
@ -447,6 +451,7 @@ func (s *service) GetNetworksWithHealth(ctx context.Context) ([]domain.IrcNetwor
|
|||
InviteCommand: n.InviteCommand,
|
||||
BouncerAddr: n.BouncerAddr,
|
||||
UseBouncer: n.UseBouncer,
|
||||
BotMode: n.BotMode,
|
||||
Connected: false,
|
||||
Channels: []domain.ChannelWithHealth{},
|
||||
ConnectionErrors: []string{},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue