Core/Commands: Added missing hyperlink system.
Port From (https://github.com/TrinityCore/TrinityCore/commit/1f60e76b7f157af6a24fa3c962b59f3391b21e75) Port From (https://github.com/TrinityCore/TrinityCore/commit/f647ff68659ed6d8d414d20520507dd451c2cb8d)
This commit is contained in:
@@ -167,16 +167,16 @@ namespace Game.Chat
|
||||
}
|
||||
|
||||
[Command("info", RBACPermissions.CommandGuildInfo, true)]
|
||||
static bool HandleGuildInfoCommand(CommandHandler handler, [OptionalArg][VariantArg<ulong, string>] dynamic guildIdentifier)
|
||||
static bool HandleGuildInfoCommand(CommandHandler handler, OptionalArg<VariantArg<ulong, string>> guildIdentifier)
|
||||
{
|
||||
Guild guild = null;
|
||||
|
||||
if (guildIdentifier != null)
|
||||
if (guildIdentifier.HasValue)
|
||||
{
|
||||
if (guildIdentifier is ulong)
|
||||
guild = Global.GuildMgr.GetGuildById(guildIdentifier);
|
||||
if (guildIdentifier.Value.Is<ulong>())
|
||||
guild = Global.GuildMgr.GetGuildById(guildIdentifier.Value);
|
||||
else
|
||||
guild = Global.GuildMgr.GetGuildByName(guildIdentifier);
|
||||
guild = Global.GuildMgr.GetGuildByName(guildIdentifier.Value);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user