From c0fe996b912fd5d274542b9649e592bfa386951d Mon Sep 17 00:00:00 2001 From: BenCat07 Date: Sat, 17 Feb 2018 14:56:51 +0100 Subject: [PATCH] more optimizations --- src/hooks/others.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/hooks/others.cpp b/src/hooks/others.cpp index 57c3b97f..9720b3f7 100644 --- a/src/hooks/others.cpp +++ b/src/hooks/others.cpp @@ -761,7 +761,7 @@ bool DispatchUserMessage_hook(void *_this, int type, bf_read &buf) "kick", claz }; for (auto i : name2) { - boost::to_lower(i); + boost::to_lower(i); res.push_back(i); } std::string message2 = message; @@ -772,13 +772,10 @@ bool DispatchUserMessage_hook(void *_this, int type, bf_read &buf) boost::replace_all(message2, "6", "g"); boost::replace_all(message2, "5", "s"); boost::replace_all(message2, "7", "t"); - logging::Info("message2: %s", message2.c_str()); for (auto filter : res) { - logging::Info("res: %s", filter.c_str()); if (boost::contains(message2, filter)) { - logging::Info("k"); chat_stack::Say(". " "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n" "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"