Implement server deletion

This commit is contained in:
Dane Everitt
2019-12-21 23:23:56 -08:00
parent 038436c781
commit 0866b84d8e
5 changed files with 100 additions and 4 deletions

View File

@@ -158,7 +158,7 @@ func LoadDirectory(dir string, cfg *config.SystemConfiguration) error {
return err
}
servers = new(Collection)
servers = NewCollection(nil)
for _, file := range f {
if !strings.HasSuffix(file.Name(), ".yml") || file.IsDir() {