Fix: Broken caching of regular expressions

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2020-12-25 21:03:57 +01:00
parent 11bd11081d
commit 58e984a4f4
Signed by: luzifer
GPG key ID: 0066F03ED215AD7D

View file

@ -64,7 +64,7 @@ func (r rule) MatcherID() string {
return fmt.Sprintf("sha256:%x", out.Sum(nil))
}
func (r rule) Matches(m *irc.Message, event *string) bool {
func (r *rule) Matches(m *irc.Message, event *string) bool {
var err error
var (