Fix passive command regex compiling and send m.notices by default

This commit is contained in:
Tulir Asokan 2018-09-21 16:09:26 +03:00
parent ba6bbead12
commit b805641ea4
4 changed files with 11 additions and 4 deletions

View file

@ -46,7 +46,9 @@ func (evt *EventFuncsImpl) MarkRead() error {
}
func (evt *EventFuncsImpl) Reply(text string) (string, error) {
return evt.ReplyContent(format.RenderMarkdown(text))
content := format.RenderMarkdown(text)
content.MsgType = gomatrix.MsgNotice
return evt.ReplyContent(content)
}
func (evt *EventFuncsImpl) ReplyContent(content gomatrix.Content) (string, error) {