add sender's name to $ann message; closes #547

This commit is contained in:
Martin Michelsen
2024-10-21 22:58:41 -07:00
parent a9a15600b2
commit e5afc1d937
4 changed files with 43 additions and 10 deletions
+8
View File
@@ -953,6 +953,14 @@ void send_text_or_scrolling_message(
}
}
void send_text_or_scrolling_message(shared_ptr<ServerState> s, const std::string& text, const std::string& scrolling) {
for (const auto& it : s->channel_to_client) {
if (it.second->login && !is_patch(it.second->version())) {
send_text_or_scrolling_message(it.second, text, scrolling);
}
}
}
string prepare_chat_data(
Version version,
uint8_t language,