fix change status

This commit is contained in:
Martin/Geno 2019-08-07 00:32:30 +02:00
parent 5ba9da2e69
commit 1a296793bf
No known key found for this signature in database
GPG Key ID: 9D7D3C6BFF600C6A
1 changed files with 2 additions and 2 deletions

View File

@ -62,9 +62,9 @@ func (s *Schalter) run(c xmpp.Sender) func() {
return func() {
if s.fetchState() {
s.updatePresence(c)
text := fmt.Sprintf("%s changed to closed", s.state)
text := fmt.Sprintf("%s changed to closed", s.spaceName)
if s.state {
text = fmt.Sprintf("%s changed to open", s.state)
text = fmt.Sprintf("%s changed to open", s.spaceName)
}
runtime.SendText(c, s.Users, s.MUCs, text, text)
log.Infof("worker detect changes of status: %s", text)