From 6097735b3c4355a7007beecb23b183ab7eda0bb7 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Fri, 15 Dec 2023 14:36:18 +0200 Subject: [PATCH] Add word to error message --- commands.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands.go b/commands.go index ef2edae..339a195 100644 --- a/commands.go +++ b/commands.go @@ -114,7 +114,7 @@ func fnSetRelay(ce *WrappedCommandEvent) { if !ce.Bridge.Config.Bridge.Relay.Enabled { ce.Reply("Relay mode is not enabled on this instance of the bridge") } else if ce.Bridge.Config.Bridge.Relay.AdminOnly && !ce.User.Admin { - ce.Reply("Only admins are allowed to enable relay mode on this instance of the bridge") + ce.Reply("Only bridge admins are allowed to enable relay mode on this instance of the bridge") } else { ce.Portal.RelayUserID = ce.User.MXID ce.Portal.Update(nil) @@ -136,7 +136,7 @@ func fnUnsetRelay(ce *WrappedCommandEvent) { if !ce.Bridge.Config.Bridge.Relay.Enabled { ce.Reply("Relay mode is not enabled on this instance of the bridge") } else if ce.Bridge.Config.Bridge.Relay.AdminOnly && !ce.User.Admin { - ce.Reply("Only admins are allowed to enable relay mode on this instance of the bridge") + ce.Reply("Only bridge admins are allowed to enable relay mode on this instance of the bridge") } else { ce.Portal.RelayUserID = "" ce.Portal.Update(nil)