mirror of
https://github.com/islehorse/HISP.git
synced 2025-06-06 11:01:27 +12:00
Finish MPN00Bs
This commit is contained in:
parent
b439ad1511
commit
b83960d872
22 changed files with 720 additions and 155 deletions
|
@ -110,7 +110,7 @@ namespace HISP.Game.Chat
|
|||
}
|
||||
public static Object FilterMessage(string message) // Handles chat filtering and violation stuffs
|
||||
{
|
||||
if (!ConfigReader.BadWords) // Freedom of Speech Mode
|
||||
if (!ConfigReader.EnableSwearFilter) // Freedom of Speech Mode
|
||||
return null;
|
||||
|
||||
|
||||
|
@ -359,7 +359,7 @@ namespace HISP.Game.Chat
|
|||
|
||||
public static string DoCorrections(string message)
|
||||
{
|
||||
if (!ConfigReader.DoCorrections)
|
||||
if (!ConfigReader.EnableCorrections)
|
||||
return message;
|
||||
|
||||
foreach(Correction correct in CorrectedWords)
|
||||
|
@ -466,7 +466,7 @@ namespace HISP.Game.Chat
|
|||
|
||||
public static string NonViolationChecks(User user, string message)
|
||||
{
|
||||
if(!ConfigReader.DoNonViolations)
|
||||
if(!ConfigReader.EnableNonViolations)
|
||||
return null;
|
||||
|
||||
// Check if contains password.
|
||||
|
|
|
@ -30,5 +30,5 @@ using System.Runtime.InteropServices;
|
|||
//
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
[assembly: AssemblyVersion("1.7.102.0")]
|
||||
[assembly: AssemblyFileVersion("1.7.102.0")]
|
||||
[assembly: AssemblyVersion("1.7.103.0")]
|
||||
[assembly: AssemblyFileVersion("1.7.103.0")]
|
||||
|
|
|
@ -28,9 +28,9 @@ namespace HISP.Server
|
|||
public static bool EnableSpamFilter = true;
|
||||
public static bool AllUsersSubbed = false;
|
||||
public static bool FixOfficalBugs = false;
|
||||
public static bool BadWords = true;
|
||||
public static bool DoCorrections = true;
|
||||
public static bool DoNonViolations = true;
|
||||
public static bool EnableSwearFilter = true;
|
||||
public static bool EnableCorrections = true;
|
||||
public static bool EnableNonViolations = true;
|
||||
|
||||
public static string ConfigurationFileName = "server.properties";
|
||||
public static void OpenConfig()
|
||||
|
@ -102,13 +102,13 @@ namespace HISP.Server
|
|||
AllUsersSubbed = data == "true";
|
||||
break;
|
||||
case "enable_corrections":
|
||||
DoCorrections = data == "true";
|
||||
EnableCorrections = data == "true";
|
||||
break;
|
||||
case "sql_lite":
|
||||
SqlLite = data == "true";
|
||||
break;
|
||||
case "enable_non_violation_check":
|
||||
DoNonViolations = data == "true";
|
||||
EnableNonViolations = data == "true";
|
||||
break;
|
||||
case "enable_spam_filter":
|
||||
EnableSpamFilter = data == "true";
|
||||
|
@ -117,7 +117,7 @@ namespace HISP.Server
|
|||
FixOfficalBugs = data == "true";
|
||||
break;
|
||||
case "enable_word_filter":
|
||||
BadWords = data == "true";
|
||||
EnableSwearFilter = data == "true";
|
||||
break;
|
||||
case "mods_folder":
|
||||
ModsFolder = data;
|
||||
|
|
|
@ -67,10 +67,10 @@ namespace HISP.Server
|
|||
Exception execpt = (Exception)e.ExceptionObject;
|
||||
|
||||
|
||||
string crashMsg = "HISP HAS CRASHED :(";
|
||||
crashMsg += "Build: " + ServerVersion.GetBuildString();
|
||||
crashMsg += "Unhandled Exception: " + execpt.Message;
|
||||
crashMsg += execpt.StackTrace;
|
||||
string crashMsg = "HISP HAS CRASHED :(" + "\n";
|
||||
crashMsg += "Build: " + ServerVersion.GetBuildString() + "\n";
|
||||
crashMsg += "Unhandled Exception: " + execpt.Message + "\n";
|
||||
crashMsg += execpt.StackTrace + "\n";
|
||||
|
||||
Logger.CrashPrint(crashMsg);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue