Hello rule patched

This commit is contained in:
2022-02-22 10:03:52 +01:00
parent 9eb4e8204e
commit 09d4834cdf
3 changed files with 17 additions and 4 deletions

View File

@@ -30,5 +30,11 @@ func (m RegexMatcher) Build(cmd string, datas ...string) (string, bool) {
str += " " + data
}
return str, m.Match(str)
str += "\r\n"
if m.Match(str) {
return str, true
} else {
return "", false
}
}