mirror of
https://github.com/jeremyd/ergo.git
synced 2026-07-28 09:48:13 -07:00
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user