Hello rule patched
This commit is contained in:
@@ -42,9 +42,9 @@ func (cMult ClientMulticast) Run() {
|
||||
}
|
||||
|
||||
// Fake test
|
||||
cmd, correct := cMult.repository.ExecuteWriter(writers.HelloRuleName, "benja.be", "5078")
|
||||
cmd, correct := cMult.repository.ExecuteWriter(writers.HelloRuleName, "benja", "5078")
|
||||
if !correct {
|
||||
println("Hello rule isn't correct")
|
||||
println("[ClientMulticast] Hello rule isn't correct (" + cmd + ")")
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user