![]() |
TrinityCore
|
Inheritance diagram for ban_commandscript:Public Member Functions | |
| ban_commandscript () | |
| ChatCommandTable | GetCommands () const override |
Public Member Functions inherited from ScriptObject | |
| std::string const & | GetName () const |
Static Public Member Functions | |
| static bool | HandleBanAccountCommand (ChatHandler *handler, char const *args) |
| static bool | HandleBanCharacterCommand (ChatHandler *handler, char const *args) |
| static bool | HandleBanAccountByCharCommand (ChatHandler *handler, char const *args) |
| static bool | HandleBanIPCommand (ChatHandler *handler, char const *args) |
| static bool | HandleBanHelper (BanMode mode, char const *args, ChatHandler *handler) |
| static bool | HandleBanInfoAccountCommand (ChatHandler *handler, char const *args) |
| static bool | HandleBanInfoHelper (uint32 accountId, char const *accountName, ChatHandler *handler) |
| static bool | HandleBanInfoCharacterCommand (ChatHandler *handler, char const *args) |
| static bool | HandleBanInfoIPCommand (ChatHandler *handler, char const *args) |
| static bool | HandleBanListAccountCommand (ChatHandler *handler, char const *args) |
| static bool | HandleBanListHelper (PreparedQueryResult result, ChatHandler *handler) |
| static bool | HandleBanListCharacterCommand (ChatHandler *handler, char const *args) |
| static bool | HandleBanListIPCommand (ChatHandler *handler, char const *args) |
| static bool | HandleUnBanAccountCommand (ChatHandler *handler, char const *args) |
| static bool | HandleUnBanCharacterCommand (ChatHandler *handler, char const *args) |
| static bool | HandleUnBanAccountByCharCommand (ChatHandler *handler, char const *args) |
| static bool | HandleUnBanIPCommand (ChatHandler *handler, char const *args) |
| static bool | HandleUnBanHelper (BanMode mode, char const *args, ChatHandler *handler) |
Additional Inherited Members | |
Protected Member Functions inherited from CommandScript | |
| CommandScript (char const *name) | |
Protected Member Functions inherited from ScriptObject | |
| ScriptObject (char const *name) | |
| virtual | ~ScriptObject () |
Definition at line 44 of file cs_ban.cpp.
|
inline |
Definition at line 47 of file cs_ban.cpp.
|
inlineoverridevirtual |
Implements CommandScript.
Definition at line 49 of file cs_ban.cpp.
References HandleBanAccountByCharCommand(), HandleBanAccountCommand(), HandleBanCharacterCommand(), HandleBanInfoAccountCommand(), HandleBanInfoCharacterCommand(), HandleBanInfoIPCommand(), HandleBanIPCommand(), HandleBanListAccountCommand(), HandleBanListCharacterCommand(), HandleBanListIPCommand(), HandleUnBanAccountByCharCommand(), HandleUnBanAccountCommand(), HandleUnBanCharacterCommand(), HandleUnBanIPCommand(), rbac::RBAC_PERM_COMMAND_BAN_ACCOUNT, rbac::RBAC_PERM_COMMAND_BAN_CHARACTER, rbac::RBAC_PERM_COMMAND_BAN_IP, rbac::RBAC_PERM_COMMAND_BAN_PLAYERACCOUNT, rbac::RBAC_PERM_COMMAND_BANINFO_ACCOUNT, rbac::RBAC_PERM_COMMAND_BANINFO_CHARACTER, rbac::RBAC_PERM_COMMAND_BANINFO_IP, rbac::RBAC_PERM_COMMAND_BANLIST_ACCOUNT, rbac::RBAC_PERM_COMMAND_BANLIST_CHARACTER, rbac::RBAC_PERM_COMMAND_BANLIST_IP, rbac::RBAC_PERM_COMMAND_UNBAN_ACCOUNT, rbac::RBAC_PERM_COMMAND_UNBAN_CHARACTER, rbac::RBAC_PERM_COMMAND_UNBAN_IP, and rbac::RBAC_PERM_COMMAND_UNBAN_PLAYERACCOUNT.
|
inlinestatic |
Definition at line 153 of file cs_ban.cpp.
References BAN_CHARACTER, and HandleBanHelper().
Referenced by GetCommands().
|
inlinestatic |
Definition at line 87 of file cs_ban.cpp.
References BAN_ACCOUNT, and HandleBanHelper().
Referenced by GetCommands().
|
inlinestatic |
Definition at line 92 of file cs_ban.cpp.
References BAN_NOTFOUND, BAN_SUCCESS, CONFIG_SHOW_BAN_IN_WORLD, WorldSession::GetPlayerName(), ChatHandler::GetSession(), LANG_BAN_CHARACTER_YOUBANNEDMESSAGE_WORLD, LANG_BAN_CHARACTER_YOUPERMBANNEDMESSAGE_WORLD, LANG_BAN_NOTFOUND, LANG_BAN_YOUBANNED, LANG_BAN_YOUPERMBANNED, LANG_PLAYER_NOT_FOUND, normalizePlayerName(), ChatHandler::PSendSysMessage(), secsToTimeString(), ChatHandler::SendSysMessage(), ChatHandler::SetSentErrorMessage(), ShortText, sWorld, and TimeStringToSecs().
Referenced by GetCommands().
|
inlinestatic |
Definition at line 163 of file cs_ban.cpp.
References BAN_ACCOUNT, BAN_CHARACTER, BAN_EXISTS, BAN_IP, BAN_NOTFOUND, BAN_SUCCESS, BAN_SYNTAX_ERROR, CONFIG_SHOW_BAN_IN_WORLD, WorldSession::GetPlayerName(), ChatHandler::GetSession(), IsIPAddress(), LANG_ACCOUNT_NOT_EXIST, LANG_BAN_ACCOUNT_YOUBANNEDMESSAGE_WORLD, LANG_BAN_ACCOUNT_YOUPERMBANNEDMESSAGE_WORLD, LANG_BAN_EXISTS, LANG_BAN_NOTFOUND, LANG_BAN_YOUBANNED, LANG_BAN_YOUPERMBANNED, LANG_PLAYER_NOT_FOUND, normalizePlayerName(), ChatHandler::PSendSysMessage(), secsToTimeString(), ChatHandler::SendSysMessage(), ChatHandler::SetSentErrorMessage(), ShortText, sWorld, TimeStringToSecs(), and Utf8ToUpperOnlyLatin().
Referenced by HandleBanAccountByCharCommand(), HandleBanAccountCommand(), and HandleBanIPCommand().
|
inlinestatic |
Definition at line 251 of file cs_ban.cpp.
References AccountMgr::GetId(), HandleBanInfoHelper(), LANG_ACCOUNT_NOT_EXIST, ChatHandler::PSendSysMessage(), ChatHandler::SetSentErrorMessage(), and Utf8ToUpperOnlyLatin().
Referenced by GetCommands().
|
inlinestatic |
Definition at line 306 of file cs_ban.cpp.
References CHAR_SEL_BANINFO, CharacterDatabase, ObjectAccessor::FindPlayerByName(), ObjectGuid::GetCounter(), Field::GetCString(), GameTime::GetGameTime(), Object::GetGUID(), ChatHandler::GetTrinityString(), Field::GetUInt32(), ObjectGuid::IsEmpty(), LANG_BANINFO_BANHISTORY, LANG_BANINFO_HISTORYENTRY, LANG_BANINFO_INFINITE, LANG_BANINFO_NOCHARACTER, LANG_CHAR_NOT_BANNED, LANG_NO, LANG_YES, normalizePlayerName(), ChatHandler::PSendSysMessage(), sCharacterCache, secsToTimeString(), ChatHandler::SendSysMessage(), ChatHandler::SetSentErrorMessage(), PreparedStatementBase::setUInt32(), ShortText, and TimeToTimestampStr().
Referenced by GetCommands().
|
inlinestatic |
Definition at line 278 of file cs_ban.cpp.
References Field::GetCString(), GameTime::GetGameTime(), ChatHandler::GetTrinityString(), Field::GetUInt64(), LANG_BANINFO_BANHISTORY, LANG_BANINFO_HISTORYENTRY, LANG_BANINFO_INFINITE, LANG_BANINFO_NOACCOUNTBAN, LANG_NO, LANG_YES, LoginDatabase, ChatHandler::PSendSysMessage(), secsToTimeString(), and ShortText.
Referenced by HandleBanInfoAccountCommand().
|
inlinestatic |
Definition at line 364 of file cs_ban.cpp.
References Field::GetCString(), ChatHandler::GetTrinityString(), Field::GetUInt64(), IsIPAddress(), LANG_BANINFO_INFINITE, LANG_BANINFO_IPENTRY, LANG_BANINFO_NEVER, LANG_BANINFO_NOIP, LoginDatabase, ChatHandler::PSendSysMessage(), secsToTimeString(), and ShortText.
Referenced by GetCommands().
|
inlinestatic |
Definition at line 158 of file cs_ban.cpp.
References BAN_IP, and HandleBanHelper().
Referenced by GetCommands().
|
inlinestatic |
Definition at line 395 of file cs_ban.cpp.
References HandleBanListHelper(), LANG_BANLIST_NOACCOUNT, LOGIN_DEL_EXPIRED_IP_BANS, LOGIN_SEL_ACCOUNT_BANNED_ALL, LOGIN_SEL_ACCOUNT_BANNED_BY_FILTER, LoginDatabase, ChatHandler::PSendSysMessage(), and PreparedStatementBase::setString().
Referenced by GetCommands().
|
inlinestatic |
Definition at line 509 of file cs_ban.cpp.
References CHAR_SEL_BANINFO_LIST, CHAR_SEL_BANNED_NAME, CHAR_SEL_GUID_BY_NAME_FILTER, CharacterDatabase, Field::GetCString(), ChatHandler::GetSession(), Field::GetString(), LANG_BANLIST_CHARACTERS, LANG_BANLIST_CHARACTERS_HEADER, LANG_BANLIST_MATCHINGCHARACTER, LANG_BANLIST_NOCHARACTER, ChatHandler::PSendSysMessage(), ChatHandler::SendSysMessage(), PreparedStatementBase::setString(), and PreparedStatementBase::setUInt32().
Referenced by GetCommands().
|
inlinestatic |
Definition at line 428 of file cs_ban.cpp.
References Field::GetCString(), AccountMgr::GetName(), ChatHandler::GetSession(), Field::GetString(), Field::GetUInt32(), LANG_BANLIST_ACCOUNTS, LANG_BANLIST_ACCOUNTS_HEADER, LANG_BANLIST_MATCHINGACCOUNT, LoginDatabase, ChatHandler::PSendSysMessage(), and ChatHandler::SendSysMessage().
Referenced by HandleBanListAccountCommand().
|
inlinestatic |
Definition at line 597 of file cs_ban.cpp.
References Field::GetCString(), ChatHandler::GetSession(), LANG_BANLIST_IPS, LANG_BANLIST_IPS_HEADER, LANG_BANLIST_MATCHINGIP, LANG_BANLIST_NOIP, LOGIN_DEL_EXPIRED_IP_BANS, LOGIN_SEL_IP_BANNED_ALL, LOGIN_SEL_IP_BANNED_BY_IP, LoginDatabase, ChatHandler::PSendSysMessage(), ChatHandler::SendSysMessage(), and PreparedStatementBase::setString().
Referenced by GetCommands().
|
inlinestatic |
Definition at line 709 of file cs_ban.cpp.
References BAN_CHARACTER, and HandleUnBanHelper().
Referenced by GetCommands().
|
inlinestatic |
Definition at line 675 of file cs_ban.cpp.
References BAN_ACCOUNT, and HandleUnBanHelper().
Referenced by GetCommands().
|
inlinestatic |
Definition at line 680 of file cs_ban.cpp.
References LANG_PLAYER_NOT_FOUND, LANG_UNBAN_UNBANNED, normalizePlayerName(), ChatHandler::PSendSysMessage(), ChatHandler::SendSysMessage(), ChatHandler::SetSentErrorMessage(), and sWorld.
Referenced by GetCommands().
|
inlinestatic |
Definition at line 719 of file cs_ban.cpp.
References BAN_ACCOUNT, BAN_CHARACTER, BAN_IP, IsIPAddress(), LANG_ACCOUNT_NOT_EXIST, LANG_PLAYER_NOT_FOUND, LANG_UNBAN_ERROR, LANG_UNBAN_UNBANNED, normalizePlayerName(), ChatHandler::PSendSysMessage(), ChatHandler::SendSysMessage(), ChatHandler::SetSentErrorMessage(), sWorld, and Utf8ToUpperOnlyLatin().
Referenced by HandleUnBanAccountByCharCommand(), HandleUnBanAccountCommand(), and HandleUnBanIPCommand().
|
inlinestatic |
Definition at line 714 of file cs_ban.cpp.
References BAN_IP, and HandleUnBanHelper().
Referenced by GetCommands().