Added setting to make sending brand info optional.

sendbrandinfo=true|false was added so we can optionally send client
info.  Enabled by default.
Added sendbrandinfo into auto-generated ini file.
Edited Protocol18.cs to reflect this with an "if" statement before
SendBrandInfo() is called upon.

Fixed minor mistake of not adding chatbotmessages into Parsemode.
Parsemode.Default was being used.
This commit is contained in:
ZizzyDizzyMC 2015-09-04 09:54:38 -04:00
parent 385a1f99b1
commit 1223c91d79
2 changed files with 8 additions and 1 deletions

View file

@ -46,6 +46,7 @@ namespace MinecraftClient
public static bool playerHeadAsIcon = false;
public static string chatbotLogFile = "";
public static bool CacheScripts = true;
public static bool SendBrandInfoEnabled = true;
//AntiAFK Settings
public static bool AntiAFK_Enabled = false;
@ -139,6 +140,7 @@ namespace MinecraftClient
case "proxy": pMode = ParseMode.Proxy; break;
case "appvars": pMode = ParseMode.AppVars; break;
case "autorespond": pMode = ParseMode.AutoRespond; break;
case "chatbotmessages": pMode = ParseMode.ChatBotMessages; break;
default: pMode = ParseMode.Default; break;
}
}
@ -166,6 +168,7 @@ namespace MinecraftClient
case "mcversion": ServerVersion = argValue; break;
case "splitmessagedelay": splitMessageDelay = TimeSpan.FromSeconds(str2int(argValue)); break;
case "scriptcache": CacheScripts = str2bool(argValue); break;
case "sendbrandinfo": SendBrandInfoEnabled = str2bool(argValue); break;
case "botowners":
Bots_Owners.Clear();
@ -386,6 +389,7 @@ namespace MinecraftClient
+ "exitonfailure=false\r\n"
+ "scriptcache=true\r\n"
+ "timestamps=false\r\n"
+ "sendbrandinfo=true\r\n"
+ "\r\n"
+ "[AppVars]\r\n"
+ "#yourvar=yourvalue\r\n"