◆ chatfilter_commandscript()
| chatfilter_commandscript::chatfilter_commandscript |
( |
| ) |
|
|
inline |
Definition CommandScript.h:25
◆ GetCommands()
◆ HandleChatFilterAddCommand()
| static bool chatfilter_commandscript::HandleChatFilterAddCommand |
( |
ChatHandler * |
handler, |
|
|
Tail |
word |
|
) |
| |
|
inlinestatic |
74 {
75 if (word.empty())
76 return false;
77
78 std::string text(word);
79
83 {
85 return true;
86 }
87
91
93
95 return true;
96 }
@ CHAR_INS_CHAT_FILTER_WORD
Definition CharacterDatabase.h:528
@ CHAR_SEL_CHAT_FILTER_WORD
Definition CharacterDatabase.h:527
DatabaseWorkerPool< CharacterDatabaseConnection > CharacterDatabase
Accessor to the character database.
Definition DatabaseEnv.cpp:21
#define sObjectMgr
Definition ObjectMgr.h:1732
void PSendSysMessage(std::string_view str, bool escapeCharacters=false)
Definition Chat.cpp:219
void SendErrorMessage(uint32 entry)
Definition Chat.cpp:224
Acore::Types::is_default< T > SetData(const uint8 index, T value)
Definition PreparedStatement.h:77
Definition PreparedStatement.h:157
References CHAR_INS_CHAT_FILTER_WORD, CHAR_SEL_CHAT_FILTER_WORD, CharacterDatabase, ChatHandler::PSendSysMessage(), ChatHandler::SendErrorMessage(), PreparedStatementBase::SetData(), and sObjectMgr.
Referenced by GetCommands().
◆ HandleChatFilterListCommand()
| static bool chatfilter_commandscript::HandleChatFilterListCommand |
( |
ChatHandler * |
handler | ) |
|
|
inlinestatic |
48 {
51
52 if (!result)
53 {
55 return true;
56 }
57
60 do
61 {
62 Field* fields = result->Fetch();
64 std::string word = fields[1].
Get<std::string>();
66 ++count;
67 } while (result->NextRow());
68
70 return true;
71 }
@ CHAR_SEL_CHAT_FILTER
Definition CharacterDatabase.h:526
std::shared_ptr< PreparedResultSet > PreparedQueryResult
Definition DatabaseEnvFwd.h:45
std::uint32_t uint32
Definition Define.h:107
virtual void SendSysMessage(std::string_view str, bool escapeCharacters=false)
Definition Chat.cpp:168
Class used to access individual fields of database query result.
Definition Field.h:98
std::enable_if_t< std::is_arithmetic_v< T >, T > Get() const
Definition Field.h:112
References CHAR_SEL_CHAT_FILTER, CharacterDatabase, Field::Get(), ChatHandler::PSendSysMessage(), and ChatHandler::SendSysMessage().
Referenced by GetCommands().
◆ HandleChatFilterRemoveCommand()
| static bool chatfilter_commandscript::HandleChatFilterRemoveCommand |
( |
ChatHandler * |
handler, |
|
|
Tail |
word |
|
) |
| |
|
inlinestatic |
The documentation for this class was generated from the following file: