jpdillingham / Soulseek.NET

A .NET Standard client library for the Soulseek network.
GNU General Public License v3.0
175 stars 24 forks source link

Add support for server message code 160 'ExcludedSearchPhrases' #807

Closed jpdillingham closed 8 months ago

jpdillingham commented 8 months ago

Adds a new event ExcludedSearchPhrasesReceived with an argument of type IReadOnlyCollection<string>. This is functionally identical to the existing PrivilegedUserListReceived event.

This message has been newly implemented server side to help the Soulseek folks avoid copyright trolls. The intent is for clients to receive this list of phrases and then to ensure outgoing search results are filtered of files containing any of the phrases.

For the greater good of the Soulseek network I ask that anyone using this library implements this functionality.

Closes #803

jpdillingham commented 8 months ago

FYI @jackBonadies

jackBonadies commented 8 months ago

@jpdillingham Thanks! Will implement this today..

codecov[bot] commented 8 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (a3f1358) 99.39% compared to head (68eac8a) 99.39%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #807 +/- ## ======================================= Coverage 99.39% 99.39% ======================================= Files 182 183 +1 Lines 6236 6250 +14 Branches 941 945 +4 ======================================= + Hits 6198 6212 +14 Misses 21 21 Partials 17 17 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

sonarcloud[bot] commented 8 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues

Measures
0 Security Hotspots
100.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud