forked from MirrorHub/mautrix-whatsapp
Add word to error message
This commit is contained in:
parent
19f6f8c896
commit
6097735b3c
1 changed files with 2 additions and 2 deletions
|
@ -114,7 +114,7 @@ func fnSetRelay(ce *WrappedCommandEvent) {
|
||||||
if !ce.Bridge.Config.Bridge.Relay.Enabled {
|
if !ce.Bridge.Config.Bridge.Relay.Enabled {
|
||||||
ce.Reply("Relay mode is not enabled on this instance of the bridge")
|
ce.Reply("Relay mode is not enabled on this instance of the bridge")
|
||||||
} else if ce.Bridge.Config.Bridge.Relay.AdminOnly && !ce.User.Admin {
|
} 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 {
|
} else {
|
||||||
ce.Portal.RelayUserID = ce.User.MXID
|
ce.Portal.RelayUserID = ce.User.MXID
|
||||||
ce.Portal.Update(nil)
|
ce.Portal.Update(nil)
|
||||||
|
@ -136,7 +136,7 @@ func fnUnsetRelay(ce *WrappedCommandEvent) {
|
||||||
if !ce.Bridge.Config.Bridge.Relay.Enabled {
|
if !ce.Bridge.Config.Bridge.Relay.Enabled {
|
||||||
ce.Reply("Relay mode is not enabled on this instance of the bridge")
|
ce.Reply("Relay mode is not enabled on this instance of the bridge")
|
||||||
} else if ce.Bridge.Config.Bridge.Relay.AdminOnly && !ce.User.Admin {
|
} 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 {
|
} else {
|
||||||
ce.Portal.RelayUserID = ""
|
ce.Portal.RelayUserID = ""
|
||||||
ce.Portal.Update(nil)
|
ce.Portal.Update(nil)
|
||||||
|
|
Loading…
Reference in a new issue