mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 08:49:13 +00:00
feat(irc): add bouncer/znc support (#951)
* feat(irc): add initial bouncer support * feat(irc): add bouncer fields to irc update form * fix: make fields optional * feat(db): add migrations
This commit is contained in:
parent
28f0b878e1
commit
2677c16ff8
8 changed files with 79 additions and 29 deletions
|
@ -43,6 +43,8 @@ type IrcNetwork struct {
|
|||
Nick string `json:"nick"`
|
||||
Auth IRCAuth `json:"auth,omitempty"`
|
||||
InviteCommand string `json:"invite_command"`
|
||||
UseBouncer bool `json:"use_bouncer"`
|
||||
BouncerAddr string `json:"bouncer_addr"`
|
||||
Channels []IrcChannel `json:"channels"`
|
||||
Connected bool `json:"connected"`
|
||||
ConnectedSince *time.Time `json:"connected_since"`
|
||||
|
@ -59,6 +61,8 @@ type IrcNetworkWithHealth struct {
|
|||
Nick string `json:"nick"`
|
||||
Auth IRCAuth `json:"auth,omitempty"`
|
||||
InviteCommand string `json:"invite_command"`
|
||||
UseBouncer bool `json:"use_bouncer"`
|
||||
BouncerAddr string `json:"bouncer_addr"`
|
||||
CurrentNick string `json:"current_nick"`
|
||||
PreferredNick string `json:"preferred_nick"`
|
||||
Channels []ChannelWithHealth `json:"channels"`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue