From 0589d15b77ac206abf37248a25139b271f4e77fb Mon Sep 17 00:00:00 2001 From: Jenny White Date: Fri, 27 Apr 2018 13:22:58 +0300 Subject: [PATCH] fix Timer{} crash --- src/hooks/others.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/hooks/others.cpp b/src/hooks/others.cpp index 66b40c30..c1e65744 100644 --- a/src/hooks/others.cpp +++ b/src/hooks/others.cpp @@ -718,16 +718,15 @@ static CatVar clean_chat(CV_SWITCH, "clean_chat", "0", "Clean chat", static CatVar dispatch_log(CV_SWITCH, "debug_log_usermessages", "0", "Log dispatched user messages"); std::string clear = ""; -//Timer sendmsg{}; -//Timer gitgud{}; std::string lastfilter{}; std::string lastname{}; static bool retrun = false; + +static Timer sendmsg{}; +static Timer gitgud{}; + bool DispatchUserMessage_hook(void *_this, int type, bf_read &buf) { - // TEMP!! - Timer sendmsg{}; - Timer gitgud{}; if (retrun && gitgud.test_and_set(10000)) { PrintChat("\x07%06X%s\x01: %s", 0xe05938, lastname.c_str(),