2018-04-10 20:36:28 -04:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using SharedLibraryCore;
|
|
|
|
|
using SharedLibraryCore.Interfaces;
|
2018-03-29 00:40:57 -04:00
|
|
|
|
|
2018-04-10 20:36:28 -04:00
|
|
|
|
namespace IW4MAdmin.Plugins.ProfanityDeterment
|
2018-03-29 00:40:57 -04:00
|
|
|
|
{
|
|
|
|
|
class Configuration : IBaseConfiguration
|
|
|
|
|
{
|
|
|
|
|
public List<string> OffensiveWords { get; set; }
|
|
|
|
|
public bool EnableProfanityDeterment { get; set; }
|
|
|
|
|
public string ProfanityWarningMessage { get; set; }
|
|
|
|
|
public string ProfanityKickMessage { get; set; }
|
|
|
|
|
public int KickAfterInfringementCount { get; set; }
|
|
|
|
|
|
|
|
|
|
public IBaseConfiguration Generate()
|
|
|
|
|
{
|
|
|
|
|
OffensiveWords = new List<string>()
|
|
|
|
|
{
|
2020-04-26 16:57:51 -04:00
|
|
|
|
@"(ph|f)[a@]g[s\$]?",
|
|
|
|
|
@"(ph|f)[a@]gg[i1]ng",
|
|
|
|
|
@"(ph|f)[a@]gg?[o0][t\+][s\$]?",
|
|
|
|
|
@"(ph|f)[a@]gg[s\$]",
|
|
|
|
|
@"(ph|f)[e3][l1][l1]?[a@][t\+][i1][o0]",
|
|
|
|
|
@"(ph|f)u(c|k|ck|q)",
|
|
|
|
|
@"(ph|f)u(c|k|ck|q)[s\$]?",
|
|
|
|
|
@"(c|k|ck|q)un[t\+][l1][i1](c|k|ck|q)",
|
|
|
|
|
@"(c|k|ck|q)un[t\+][l1][i1](c|k|ck|q)[e3]r",
|
|
|
|
|
@"(c|k|ck|q)un[t\+][l1][i1](c|k|ck|q)[i1]ng",
|
|
|
|
|
@"b[i1][t\+]ch[s\$]?",
|
|
|
|
|
@"b[i1][t\+]ch[e3]r[s\$]?",
|
|
|
|
|
@"b[i1][t\+]ch[e3][s\$]",
|
|
|
|
|
@"b[i1][t\+]ch[i1]ng?",
|
|
|
|
|
@"n[i1]gg?[e3]r[s\$]?",
|
|
|
|
|
@"[s\$]h[i1][t\+][s\$]?",
|
|
|
|
|
@"[s\$][l1]u[t\+][s\$]?"
|
2018-03-29 00:40:57 -04:00
|
|
|
|
};
|
|
|
|
|
|
2018-05-08 00:58:46 -04:00
|
|
|
|
var loc = Utilities.CurrentLocalization.LocalizationIndex;
|
|
|
|
|
|
|
|
|
|
EnableProfanityDeterment = Utilities.PromptBool(loc["PLUGINS_PROFANITY_SETUP_ENABLE"]);
|
|
|
|
|
ProfanityWarningMessage = loc["PLUGINS_PROFANITY_WARNMSG"];
|
|
|
|
|
ProfanityKickMessage = loc["PLUGINS_PROFANITY_KICKMSG"];
|
2018-03-29 00:40:57 -04:00
|
|
|
|
KickAfterInfringementCount = 2;
|
|
|
|
|
|
|
|
|
|
return this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string Name() => "Configuration";
|
|
|
|
|
}
|
|
|
|
|
}
|