mirror of
https://github.com/maubot/maubot
synced 2025-09-02 00:00:39 +00:00
Fix passive command regex compiling and send m.notices by default
This commit is contained in:
parent
ba6bbead12
commit
b805641ea4
4 changed files with 11 additions and 4 deletions
|
@ -83,7 +83,7 @@ func (pc *ParsedCommand) parseCommandSyntax(command maubot.Command) error {
|
|||
func (pc *ParsedCommand) parsePassiveCommandSyntax(command maubot.PassiveCommand) error {
|
||||
pc.MatchAgainst = command.MatchAgainst
|
||||
var err error
|
||||
pc.Matches, err = regexp.Compile(fmt.Sprintf("(%s)", command.Matches))
|
||||
pc.Matches, err = regexp.Compile(command.Matches)
|
||||
pc.MatchesEvent = command.MatchEvent
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue