From 65417749b23d8f3da3cde656243e8c6ce07c15c6 Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Mon, 27 Nov 2023 15:58:56 -0800 Subject: [PATCH] don't send text messages to 11/2000 clients --- src/SendCommands.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/SendCommands.cc b/src/SendCommands.cc index 637738a2..343df98a 100644 --- a/src/SendCommands.cc +++ b/src/SendCommands.cc @@ -789,11 +789,13 @@ void send_ship_info(Channel& ch, const string& text) { } void send_text_message(Channel& ch, const string& text) { - send_header_text(ch, 0xB0, 0, text, ColorMode::ADD); + if ((ch.version != Version::DC_NTE) && (ch.version != Version::DC_V1_11_2000_PROTOTYPE)) { + send_header_text(ch, 0xB0, 0, text, ColorMode::ADD); + } } void send_text_message(shared_ptr c, const string& text) { - if (c->version() != Version::DC_NTE) { + if ((c->version() != Version::DC_NTE) && (c->version() != Version::DC_V1_11_2000_PROTOTYPE)) { send_header_text(c->channel, 0xB0, 0, text, ColorMode::ADD); } }