feat: add an option to disable RMT Filtering

This commit is contained in:
Cara 2021-09-19 15:24:25 +09:30
parent e29a312c52
commit acd5c7f93a
3 changed files with 20 additions and 6 deletions

View file

@ -151,13 +151,16 @@ namespace Dalamud.Game
var textVal = message.TextValue;
var matched = this.rmtRegex.IsMatch(textVal);
if (matched)
if (!configuration.DisableRmtFiltering)
{
// This seems to be a RMT ad - let's not show it
Log.Debug("Handled RMT ad: " + message.TextValue);
isHandled = true;
return;
var matched = this.rmtRegex.IsMatch(textVal);
if (matched)
{
// This seems to be a RMT ad - let's not show it
Log.Debug("Handled RMT ad: " + message.TextValue);
isHandled = true;
return;
}
}
if (configuration.BadWords != null &&