From 7352f83c2884440b640a89589f04772aeea44c8a Mon Sep 17 00:00:00 2001 From: BenCat07 Date: Sun, 25 Feb 2018 13:53:16 +0100 Subject: [PATCH] Update others.cpp --- src/hooks/others.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/hooks/others.cpp b/src/hooks/others.cpp index b360f30d..450fe478 100644 --- a/src/hooks/others.cpp +++ b/src/hooks/others.cpp @@ -692,12 +692,14 @@ bool DispatchUserMessage_hook(void *_this, int type, bf_read &buf) message.push_back(c); } } - static const char *lastfilter; - static const char *lastname; - static bool retrun = false; - if (retrun) - PrintChat("\x07%06X%s\x01: \x07%06X%s\x01", 0xe05938, lastname, - 0xefec1f, lastfilter); + static const char *lastfilter; + static const char *lastname; + static bool retrun = false; + if (data[0] != LOCAL_E->m_IDX) { + if (retrun) + PrintChat("\x07%06X%s\x01: \x07%06X%s\x01", 0xe05938, lastname, + 0xefec1f, lastfilter); + } retrun = false; if (chat_filter_enabled && data[0] != LOCAL_E->m_IDX) {