From 1a296793bf87b35797f6c255ed71c42737caf93d Mon Sep 17 00:00:00 2001 From: Martin/Geno Date: Wed, 7 Aug 2019 00:32:30 +0200 Subject: [PATCH] fix change status --- schalter/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)