More Cleanups

This commit is contained in:
hondacrx
2021-06-08 12:56:09 -04:00
parent 302a1f293c
commit 52e43853fe
58 changed files with 223 additions and 257 deletions
@@ -100,7 +100,7 @@ namespace Game.Chat.Commands
string accountName = accountId.ToString() + '#' + index;
// Generate random hex string for password, these accounts must not be logged on with GRUNT
byte[] randPassword = new byte[0].GenerateRandomKey(8);
byte[] randPassword = Array.Empty<byte>().GenerateRandomKey(8);
switch (Global.AccountMgr.CreateAccount(accountName, randPassword.ToHexString(), bnetAccountName, accountId, index))
{
case AccountOpResult.Ok:
@@ -179,7 +179,7 @@ namespace Game.Chat.Commands
{
int index = name.IndexOf('#');
if (index > 0)
return "WoW" + name.Substring(++index);
return "WoW" + name[++index..];
else
return name;
});