Quick fixes (awesome name)

This commit is contained in:
FeTetra 2025-05-25 22:10:31 -04:00
commit 0c8ff50176
5 changed files with 15 additions and 13 deletions

View file

@ -77,12 +77,13 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.";
{
announceText.Append("This server instance requires the use of the Patchwork plugin for LBP.\n\n");
if (PatchworkHelper.userHasValidPatchworkUserAgent(user.UserAgent))
if (!PatchworkHelper.UserHasValidPatchworkUserAgent(this.Request.Headers.UserAgent.ToString()))
{
announceText.Append("It appears you do not have the Patchwork plugin installed correctly." +
"Since this server instance requires it, you will not be able to play until you so.");
"Since this server instance requires it, you will not be able to play until you so.");
await LogoutHelper.Logout(token, user, database);
}
await LogoutHelper.Logout(token, user, database);
}
#if DEBUG