Update Cwtch / Trigger Antispam PLugin

This commit is contained in:
Sarah Jamie Lewis 2022-09-10 10:51:34 -07:00
parent e0d2c229c7
commit f0ea513177
2 changed files with 3 additions and 0 deletions

2
go.mod
View File

@ -29,3 +29,5 @@ require (
golang.org/x/tools v0.1.10 // indirect
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
)
replace cwtch.im/cwtch => /home/sarah/workspace/src/cwtch.im/cwtch

View File

@ -143,6 +143,7 @@ func (eh *EventHandler) handleAppBusEvent(e *event.Event) string {
profile.SetScopedZonedAttribute(attr.LocalScope, attr.ProfileZone, constants2.PeerOnline, event.False)
eh.app.AddPeerPlugin(onion, plugins.CONNECTIONRETRY)
eh.app.AddPeerPlugin(onion, plugins.NETWORKCHECK)
eh.app.AddPeerPlugin(onion, plugins.ANTISPAM)
// If the user has chosen to block unknown profiles
// then explicitly configure the protocol engine to do so..