core/ChatTriggers.cpp
changeset 3004 e3ac0dc6d9a4
parent 2617 253d6b4f15ab
child 3819 d17aed3d46bf
     1.1 --- a/core/ChatTriggers.cpp	Fri May 14 19:43:38 2010 -0700
     1.2 +++ b/core/ChatTriggers.cpp	Fri May 14 19:43:53 2010 -0700
     1.3 @@ -34,8 +34,8 @@
     1.4  #include "sm_stringutil.h"
     1.5  #include "ConCmdManager.h"
     1.6  #include "PlayerManager.h"
     1.7 -#include "Translator.h"
     1.8  #include "HalfLife2.h"
     1.9 +#include "logic_bridge.h"
    1.10  
    1.11  /* :HACKHACK: We can't SH_DECL here because ConCmdManager.cpp does.
    1.12   * While the OB build only runs on MM:S 1.6.0+ (SH 5+), the older one 
    1.13 @@ -113,7 +113,7 @@
    1.14  
    1.15  void ChatTriggers::OnSourceModAllInitialized_Post()
    1.16  {
    1.17 -	g_pCorePhrases->AddPhraseFile("antiflood.phrases");
    1.18 +	logicore.AddCorePhraseFile("antiflood.phrases");
    1.19  }
    1.20  
    1.21  void ChatTriggers::OnSourceModGameInitialized()
    1.22 @@ -189,17 +189,8 @@
    1.23  	{
    1.24  		char buffer[128];
    1.25  
    1.26 -		if (!CoreTranslate(
    1.27 -			buffer,
    1.28 -			sizeof(buffer),
    1.29 -			"%T",
    1.30 -			2,
    1.31 -			NULL,
    1.32 -			"Flooding the server",
    1.33 -			&client))
    1.34 -		{
    1.35 +		if (!logicore.CoreTranslate(buffer, sizeof(buffer), "%T", 2, NULL, "Flooding the server", &client))
    1.36  			UTIL_Format(buffer, sizeof(buffer), "You are flooding the server!");
    1.37 -		}
    1.38  
    1.39  		/* :TODO: we should probably kick people who spam too much. */
    1.40