diff options
| author | Osmium Sorcerer <os@sof.beauty> | 2026-03-22 17:50:53 +0000 |
|---|---|---|
| committer | Osmium Sorcerer <os@sof.beauty> | 2026-03-29 22:22:25 +0000 |
| commit | 5541e36f81d5d565f7a205ad1f7db2b2463ff553 (patch) | |
| tree | 6d3c27e7144baf053cb1e64a402b1b30d9f5fbc5 | |
| parent | 173c52f87d9519f2462c6f33a500cea005b71ada (diff) | |
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).
| -rw-r--r-- | src/courtroom.cpp | 7 | ||||
| -rw-r--r-- | src/courtroom.h | 4 | ||||
| -rw-r--r-- | src/packet_distribution.cpp | 8 |
3 files changed, 0 insertions, 19 deletions
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()) |
