From 8859f35fcd6cc79a43127382450edd2d401d68d9 Mon Sep 17 00:00:00 2001 From: AwesomeAim <30537683+AwesomeAim@users.noreply.github.com> Date: Thu, 5 May 2022 11:16:51 -0700 Subject: [PATCH] Don't Display IPIDs to Users via Global Chat Slightly better variable names too while we're at it --- core/src/commands/messaging.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/commands/messaging.cpp b/core/src/commands/messaging.cpp index 040b6cd..3c1b36d 100644 --- a/core/src/commands/messaging.cpp +++ b/core/src/commands/messaging.cpp @@ -72,9 +72,9 @@ void AOClient::cmdG(int argc, QStringList argv) QString l_sender_area = server->m_area_names.value(m_current_area); QString l_sender_message = argv.join(" "); //Slightly better readability - AOPacket l_packet = AOPacket("CT", {"[G][" + m_ipid + "][" + l_sender_area + "]" + l_sender_name, l_sender_message}); - AOPacket l_other_packet = AOPacket("CT", {"[G][" + l_sender_area + "]" + l_sender_name, l_sender_message}); - server->broadcast(l_packet, l_other_packet, Server::TARGET_TYPE::AUTHENTICATED); + AOPacket l_mod_packet = AOPacket("CT", {"[G][" + m_ipid + "][" + l_sender_area + "]" + l_sender_name, l_sender_message}); + AOPacket l_user_packet = AOPacket("CT", {"[G][" + l_sender_area + "]" + l_sender_name, l_sender_message}); + server->broadcast(l_user_packet, l_mod_packet, Server::TARGET_TYPE::AUTHENTICATED); return; }