From d261997d8433c70157a06bc2eb953cd0909366c2 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Thu, 21 Jun 2018 22:08:33 +0300 Subject: [PATCH] Require ! at start of active commands --- matrix/commands.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matrix/commands.go b/matrix/commands.go index b4ec037..df4d683 100644 --- a/matrix/commands.go +++ b/matrix/commands.go @@ -41,7 +41,7 @@ func (pc *ParsedCommand) parseCommandSyntax(command maubot.Command) error { swBuilder := &strings.Builder{} argumentEncountered := false - regexBuilder.WriteRune('^') + regexBuilder.WriteString("^!") words := strings.Split(command.Syntax, " ") for i, word := range words { argument, ok := command.Arguments[word]