Core: add some missing Player Name normalization on input data

Port From (https://github.com/TrinityCore/TrinityCore/commit/b742c872223950dfae14468b0e7a304a3e660e76)
This commit is contained in:
hondacrx
2019-08-15 14:53:54 -04:00
parent 421febe4a8
commit df61f03a98
2 changed files with 9 additions and 0 deletions
+3
View File
@@ -241,6 +241,9 @@ namespace Game
Team inviteeTeam = 0;
ulong inviteeGuildId = 0;
if (!ObjectManager.NormalizePlayerName(ref calendarEventInvite.Name))
return;
Player player = Global.ObjAccessor.FindPlayerByName(calendarEventInvite.Name);
if (player)
{