mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 08:49: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") {
|
} else if (formData.implementation === "irc") {
|
||||||
const channels: IrcChannel[] = [];
|
const channels: IrcChannel[] = [];
|
||||||
if (ind.irc?.channels.length) {
|
if (ind.irc?.channels.length) {
|
||||||
|
let channelPass = "";
|
||||||
|
if (formData.channels?.password !== "") {
|
||||||
|
channelPass = formData.channels.password;
|
||||||
|
}
|
||||||
|
|
||||||
ind.irc.channels.forEach(element => {
|
ind.irc.channels.forEach(element => {
|
||||||
channels.push({
|
channels.push({
|
||||||
id: 0,
|
id: 0,
|
||||||
enabled: true,
|
enabled: true,
|
||||||
name: element,
|
name: element,
|
||||||
password: "",
|
password: channelPass,
|
||||||
detached: false,
|
detached: false,
|
||||||
monitoring: false
|
monitoring: false
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue