From 5541e36f81d5d565f7a205ad1f7db2b2463ff553 Mon Sep 17 00:00:00 2001 From: Osmium Sorcerer Date: Sun, 22 Mar 2026 17:50:53 +0000 Subject: Remove IL packet IL packet is a relic from pre-IPID days when moderators used it to get the "IP list" of connected users. Its function is to display a list of strings in the OOC chat box. That's it. Not even some obscure feature that can be revived. Everything IL can do, CT can do (the "OOC message" packet). --- src/courtroom.cpp | 7 ------- src/courtroom.h | 4 ---- src/packet_distribution.cpp | 8 -------- 3 files changed, 19 deletions(-) (limited to 'src') diff --git a/src/courtroom.cpp b/src/courtroom.cpp index e7e377d..1eaa747 100644 --- a/src/courtroom.cpp +++ b/src/courtroom.cpp @@ -4649,13 +4649,6 @@ void Courtroom::set_self_offset(const QString &p_list, kal::AnimationLayer *p_la p_layer->move(ui_viewport->width() * self_offset / 100, ui_viewport->height() * self_offset_v / 100); } -void Courtroom::set_ip_list(QString p_list) -{ - QString f_list = p_list.replace("|", ":").replace("*", "\n"); - - ui_server_chatlog->append(f_list); -} - void Courtroom::set_mute(bool p_muted, int p_cid) { if (p_cid != m_cid && p_cid != -1) diff --git a/src/courtroom.h b/src/courtroom.h index 6114c35..df8f30c 100644 --- a/src/courtroom.h +++ b/src/courtroom.h @@ -158,10 +158,6 @@ public: // desk_mod 4 and 5 void set_self_offset(const QString &p_list, kal::AnimationLayer *p_layer); - // takes in serverD-formatted IP list as prints a converted version to server - // OOC admittedly poorly named - void set_ip_list(QString p_list); - // disables chat if current cid matches second argument // enables if p_muted is false void set_mute(bool p_muted, int p_cid); diff --git a/src/packet_distribution.cpp b/src/packet_distribution.cpp index 5c9cd17..2ff35ce 100644 --- a/src/packet_distribution.cpp +++ b/src/packet_distribution.cpp @@ -474,14 +474,6 @@ void AOApplication::server_packet_received(AOPacket packet) } log_to_demo = false; } - else if (header == "IL") - { - if (is_courtroom_constructed() && !content.isEmpty()) - { - w_courtroom->set_ip_list(content.at(0)); - } - log_to_demo = false; - } else if (header == "MU") { if (is_courtroom_constructed() && !content.isEmpty()) -- cgit