Chat/Commands: Eradicate ChatHandler::extractOptFirstArg
Port From (https://github.com/TrinityCore/TrinityCore/commit/42be7836dfacd9e8d6b0c2b5d5f230ed6a55f088)
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user