fix announce filter match
Ted Unangst tedu@tedunangst.com
Thu, 21 Dec 2023 02:46:54 -0500
1 files changed,
5 insertions(+),
4 deletions(-)
jump to
M
hfcs.go
→
hfcs.go
@@ -346,10 +346,11 @@ }
} if match && f.IsAnnounce { match = false - if (f.AnnounceOf == "" && h.Oonker != "") || f.AnnounceOf == h.Oonker || - f.AnnounceOf == originate(h.Oonker) { - match = true - rv += " announce" + if h.Oonker != "" { + if f.AnnounceOf == "" || f.AnnounceOf == h.Oonker || f.AnnounceOf == originate(h.Oonker) { + match = true + rv += " announce" + } } } if match && f.Text != "" && f.Text != "." {