Temporary workaround for on-inject crash 🤔
This commit is contained in:
parent
49a6d408c9
commit
70d951d946
@ -718,13 +718,16 @@ static CatVar clean_chat(CV_SWITCH, "clean_chat", "0", "Clean chat",
|
|||||||
static CatVar dispatch_log(CV_SWITCH, "debug_log_usermessages", "0",
|
static CatVar dispatch_log(CV_SWITCH, "debug_log_usermessages", "0",
|
||||||
"Log dispatched user messages");
|
"Log dispatched user messages");
|
||||||
std::string clear = "";
|
std::string clear = "";
|
||||||
Timer sendmsg{};
|
//Timer sendmsg{};
|
||||||
Timer gitgud{};
|
//Timer gitgud{};
|
||||||
std::string lastfilter{};
|
std::string lastfilter{};
|
||||||
std::string lastname{};
|
std::string lastname{};
|
||||||
static bool retrun = false;
|
static bool retrun = false;
|
||||||
bool DispatchUserMessage_hook(void *_this, int type, bf_read &buf)
|
bool DispatchUserMessage_hook(void *_this, int type, bf_read &buf)
|
||||||
{
|
{
|
||||||
|
// TEMP!!
|
||||||
|
Timer sendmsg{};
|
||||||
|
Timer gitgud{};
|
||||||
if (retrun && gitgud.test_and_set(10000))
|
if (retrun && gitgud.test_and_set(10000))
|
||||||
{
|
{
|
||||||
PrintChat("\x07%06X%s\x01: %s", 0xe05938, lastname.c_str(),
|
PrintChat("\x07%06X%s\x01: %s", 0xe05938, lastname.c_str(),
|
||||||
|
Reference in New Issue
Block a user