diff --git a/schalter/main.go b/schalter/main.go index 53bbbf3..9741295 100644 --- a/schalter/main.go +++ b/schalter/main.go @@ -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)