From da5e3993332792579b2b3185a908bc0f7713f2e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Sommer?= Date: Fri, 7 Dec 2018 17:02:51 +0100 Subject: [PATCH] CommandEvent.Reply: Send all messages to management room Because the Bridge Bot doesn't participate in the rooms it can't send any messages to this room. Hence, we should send all replies to the management room. --- commands.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands.go b/commands.go index 6f467a8..e23c7a3 100644 --- a/commands.go +++ b/commands.go @@ -52,7 +52,7 @@ type CommandEvent struct { // Reply sends a reply to command as notice func (ce *CommandEvent) Reply(msg string) { - _, err := ce.Bot.SendNotice(string(ce.RoomID), msg) + _, err := ce.Bot.SendNotice(string(ce.User.ManagementRoom), msg) if err != nil { ce.Handler.log.Warnfln("Failed to reply to command from %s: %v", ce.User.MXID, err) }