mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 00:39:13 +00:00
feat(irc): set channel pass on indexer add (#1473)
* feat(irc): set channel pass on creation * fix: missing semicolons
This commit is contained in:
parent
be0948fb2e
commit
67980776b6
1 changed files with 6 additions and 1 deletions
|
@ -370,12 +370,17 @@ export function IndexerAddForm({ isOpen, toggle }: AddProps) {
|
|||
} else if (formData.implementation === "irc") {
|
||||
const channels: IrcChannel[] = [];
|
||||
if (ind.irc?.channels.length) {
|
||||
let channelPass = "";
|
||||
if (formData.channels?.password !== "") {
|
||||
channelPass = formData.channels.password;
|
||||
}
|
||||
|
||||
ind.irc.channels.forEach(element => {
|
||||
channels.push({
|
||||
id: 0,
|
||||
enabled: true,
|
||||
name: element,
|
||||
password: "",
|
||||
password: channelPass,
|
||||
detached: false,
|
||||
monitoring: false
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue