all repos — honk @ 444abdec55cb95dc1ea62496d956a8e9b0559dde

my fork of honk

fix announce filter match
Ted Unangst tedu@tedunangst.com
Thu, 21 Dec 2023 02:46:54 -0500
commit

444abdec55cb95dc1ea62496d956a8e9b0559dde

parent

018b6c68c9e2b8659008b80fed7c9b984c0f9a38

1 files changed, 5 insertions(+), 4 deletions(-)

jump to
M hfcs.gohfcs.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 != "." {