Chat/Commands: Eradicate ChatHandler::extractOptFirstArg

Port From (https://github.com/TrinityCore/TrinityCore/commit/42be7836dfacd9e8d6b0c2b5d5f230ed6a55f088)
This commit is contained in:
hondacrx
2022-06-08 15:49:43 -04:00
parent f54dd5bba1
commit e6db88fa14
5 changed files with 65 additions and 109 deletions
-4
View File
@@ -40,7 +40,6 @@ namespace Game.Chat
{
int oldPos = args.GetCurrentPosition();
//Is this a hyperlink?
if (ParseArgument(out dynamic value, parameterTypes[index], args))
index++;
@@ -68,9 +67,6 @@ namespace Game.Chat
if (args.IsAtEnd())
return false;
if (Hyperlink.TryParse(out value, type, args))
return value;
if (type.IsEnum)
type = type.GetEnumUnderlyingType();