Added "antiflood.txt" to Core's IPhraseCollection to prevent error spew (bug amb1922).
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%402527
This commit is contained in:
parent
e1f8a0fd68
commit
0691bca512
@ -57,7 +57,6 @@ extern bool __SourceHook_FHAddConCommandDispatch(void *, bool, class fastdelegat
|
|||||||
|
|
||||||
ChatTriggers g_ChatTriggers;
|
ChatTriggers g_ChatTriggers;
|
||||||
bool g_bSupressSilentFails = false;
|
bool g_bSupressSilentFails = false;
|
||||||
CPhraseFile *g_pFloodPhrases = NULL;
|
|
||||||
|
|
||||||
ChatTriggers::ChatTriggers() : m_pSayCmd(NULL), m_bWillProcessInPost(false),
|
ChatTriggers::ChatTriggers() : m_pSayCmd(NULL), m_bWillProcessInPost(false),
|
||||||
m_bTriggerWasSilent(false), m_ReplyTo(SM_REPLY_CONSOLE)
|
m_bTriggerWasSilent(false), m_ReplyTo(SM_REPLY_CONSOLE)
|
||||||
@ -114,10 +113,7 @@ void ChatTriggers::OnSourceModAllInitialized()
|
|||||||
|
|
||||||
void ChatTriggers::OnSourceModAllInitialized_Post()
|
void ChatTriggers::OnSourceModAllInitialized_Post()
|
||||||
{
|
{
|
||||||
unsigned int file_id;
|
g_pCorePhrases->AddPhraseFile("antiflood.phrases");
|
||||||
|
|
||||||
file_id = g_Translator.FindOrAddPhraseFile("antiflood.phrases.txt");
|
|
||||||
g_pFloodPhrases = g_Translator.GetFileByIndex(file_id);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ChatTriggers::OnSourceModGameInitialized()
|
void ChatTriggers::OnSourceModGameInitialized()
|
||||||
|
Loading…
Reference in New Issue
Block a user