forked from External/ergo
parent
9033d97c6f
commit
ba72d3acfc
10 changed files with 101 additions and 28 deletions
|
|
@ -44,6 +44,7 @@ type channelImport struct {
|
|||
Modes string
|
||||
Key string
|
||||
Limit int
|
||||
Forward string
|
||||
}
|
||||
|
||||
type databaseImport struct {
|
||||
|
|
@ -187,6 +188,11 @@ func doImportDBGeneric(config *Config, dbImport databaseImport, credsType Creden
|
|||
if chInfo.Limit > 0 {
|
||||
tx.Set(fmt.Sprintf(keyChannelUserLimit, cfchname), strconv.Itoa(chInfo.Limit), nil)
|
||||
}
|
||||
if chInfo.Forward != "" {
|
||||
if _, err := CasefoldChannel(chInfo.Forward); err == nil {
|
||||
tx.Set(fmt.Sprintf(keyChannelForward, cfchname), chInfo.Forward, nil)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if warnSkeletons {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue