v0.5.8
bel 2022-01-31 09:31:40 -07:00
parent b3ce49788b
commit 0ab534624a
1 changed files with 12 additions and 2 deletions

14
main.go
View File

@ -126,7 +126,12 @@ func matrixrecv() error {
logtr.Errorf("failed to mark state gathered @%s: %v", key, err)
}
}
setNewZips(zips)
if config.Get().Brokers.UseZips {
setNewZips(zips)
} else {
sender.Send("I don't accept !zip, only !state right now")
}
}()
func() {
logtr.Verbosef("looking for states")
@ -150,7 +155,12 @@ func matrixrecv() error {
logtr.Errorf("failed to mark state gathered @%s: %v", key, err)
}
}
setNewStates(states)
if !config.Get().Brokers.UseZips {
setNewStates(states)
} else {
sender.Send("I don't accept !state, only !zip right now")
}
}()
func() {
logtr.Verbosef("looking for radius")