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:
@@ -269,13 +269,13 @@ namespace Game.Chat.Commands
|
||||
class BanListCommands
|
||||
{
|
||||
[Command("account", RBACPermissions.CommandBanlistAccount, true)]
|
||||
static bool HandleBanListAccountCommand(CommandHandler handler, [OptionalArg] string filter)
|
||||
static bool HandleBanListAccountCommand(CommandHandler handler, OptionalArg<string> filter)
|
||||
{
|
||||
PreparedStatement stmt = LoginDatabase.GetPreparedStatement(LoginStatements.DEL_EXPIRED_IP_BANS);
|
||||
DB.Login.Execute(stmt);
|
||||
|
||||
SQLResult result;
|
||||
if (filter.IsEmpty())
|
||||
if (!filter.HasValue)
|
||||
{
|
||||
stmt = LoginDatabase.GetPreparedStatement(LoginStatements.SEL_ACCOUNT_BANNED_ALL);
|
||||
result = DB.Login.Query(stmt);
|
||||
@@ -378,14 +378,14 @@ namespace Game.Chat.Commands
|
||||
}
|
||||
|
||||
[Command("ip", RBACPermissions.CommandBanlistIp, true)]
|
||||
static bool HandleBanListIPCommand(CommandHandler handler, [OptionalArg] string filter)
|
||||
static bool HandleBanListIPCommand(CommandHandler handler, OptionalArg<string> filter)
|
||||
{
|
||||
PreparedStatement stmt = LoginDatabase.GetPreparedStatement(LoginStatements.DEL_EXPIRED_IP_BANS);
|
||||
DB.Login.Execute(stmt);
|
||||
|
||||
SQLResult result;
|
||||
|
||||
if (filter.IsEmpty())
|
||||
if (!filter.HasValue)
|
||||
{
|
||||
stmt = LoginDatabase.GetPreparedStatement(LoginStatements.SEL_IP_BANNED_ALL);
|
||||
result = DB.Login.Query(stmt);
|
||||
|
||||
Reference in New Issue
Block a user