|
|
|
@ -85,6 +85,7 @@ func parseConfig(configPath string) (configuration, error) {
|
|
|
|
|
if err != nil {
|
|
|
|
|
return output, fmt.Errorf("parseConfig: failed to open config file: %w", err)
|
|
|
|
|
}
|
|
|
|
|
defer file.Close()
|
|
|
|
|
scanner := bufio.NewScanner(file)
|
|
|
|
|
scanner.Split(bufio.ScanLines)
|
|
|
|
|
|
|
|
|
@ -138,10 +139,6 @@ func parseConfig(configPath string) (configuration, error) {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
err = file.Close()
|
|
|
|
|
if err != nil {
|
|
|
|
|
fmt.Println("error closing file:", err)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Check if the username is a valid JID
|
|
|
|
|
output.username, err = MarshalJID(output.username)
|
|
|
|
|