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) {