diff --git a/commands.go b/commands.go index e3b30d9..0f41049 100644 --- a/commands.go +++ b/commands.go @@ -450,7 +450,10 @@ func parseInviteMeta(meta map[string]interface{}) (jid, inviter types.JID, code const cmdSetPowerLevelHelp = `set-pl [user ID] - Change the power level in a portal room. Only for bridge admins.` func (handler *CommandHandler) CommandSetPowerLevel(ce *CommandEvent) { - if ce.Portal == nil { + if !ce.User.Admin { + ce.Reply("Only bridge admins can use `set-pl`") + return + } else if ce.Portal == nil { ce.Reply("Not a portal room") return }