fix leaving message for 255 company

This commit is contained in:
shoopea
2021-11-28 21:41:00 +08:00
parent 3b878e0641
commit 044eac9a77
3 changed files with 65 additions and 10 deletions

View File

@@ -101,6 +101,9 @@ func (c *Config) Export() ([]byte, error) {
}
func (c *Config) CompanyIsRegistered(id uint8) bool {
if id == 255 {
return false
}
for _, cc := range c.Clients {
if cc.CompanyID == id {
return true