Added "antiflood.txt" to Core's IPhraseCollection to prevent error spew (bug amb1922).
authorDavid Anderson <dvander@alliedmods.net>
Mon Sep 08 06:20:54 2008 +0000 (2008-09-08)
changeset 227650d05c18e62a
parent 2275 90970a0ce0b8
child 2277 0a1917e4daaf
Added "antiflood.txt" to Core's IPhraseCollection to prevent error spew (bug amb1922).
core/ChatTriggers.cpp
     1.1 --- a/core/ChatTriggers.cpp	Mon Sep 08 02:13:17 2008 +0000
     1.2 +++ b/core/ChatTriggers.cpp	Mon Sep 08 06:20:54 2008 +0000
     1.3 @@ -57,7 +57,6 @@
     1.4  
     1.5  ChatTriggers g_ChatTriggers;
     1.6  bool g_bSupressSilentFails = false;
     1.7 -CPhraseFile *g_pFloodPhrases = NULL;
     1.8  
     1.9  ChatTriggers::ChatTriggers() : m_pSayCmd(NULL), m_bWillProcessInPost(false), 
    1.10  	m_bTriggerWasSilent(false), m_ReplyTo(SM_REPLY_CONSOLE)
    1.11 @@ -114,10 +113,7 @@
    1.12  
    1.13  void ChatTriggers::OnSourceModAllInitialized_Post()
    1.14  {
    1.15 -	unsigned int file_id;
    1.16 -	
    1.17 -	file_id = g_Translator.FindOrAddPhraseFile("antiflood.phrases.txt");
    1.18 -	g_pFloodPhrases = g_Translator.GetFileByIndex(file_id);
    1.19 +	g_pCorePhrases->AddPhraseFile("antiflood.phrases");
    1.20  }
    1.21  
    1.22  void ChatTriggers::OnSourceModGameInitialized()