From c9700f236f9de518c1ac609ee0ef2ffcf0df36c3 Mon Sep 17 00:00:00 2001 From: in1tiate Date: Thu, 15 Apr 2021 10:26:46 -0500 Subject: [PATCH] more cleanly handle empty input, snip debug call --- src/packets.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/packets.cpp b/src/packets.cpp index 221fa56..15823cb 100644 --- a/src/packets.cpp +++ b/src/packets.cpp @@ -361,8 +361,6 @@ void AOClient::pktSetCase(AreaData* area, int argc, QStringList argv, AOPacket p casing_preferences.judge = prefs_list[3]; casing_preferences.jury = prefs_list[4]; casing_preferences.stenographer = prefs_list[5]; - - qDebug() << casing_preferences.cm << casing_preferences.defense << casing_preferences.prosecution << casing_preferences.judge << casing_preferences.jury << casing_preferences.stenographer; } void AOClient::pktAnnounceCase(AreaData* area, int argc, QStringList argv, AOPacket packet) @@ -400,7 +398,7 @@ void AOClient::pktAnnounceCase(AreaData* area, int argc, QStringList argv, AOPac return; } - QString message = "=== Case Announcement ===\r\n" + ooc_name + " needs " + needed_roles.join(", ") + " for " + case_title + "!"; + QString message = "=== Case Announcement ===\r\n" + ooc_name == "" ? current_char : ooc_name + " needs " + needed_roles.join(", ") + " for " + case_title == "" ? "a case" : case_title + "!"; QList clients_to_alert; // this is morton the indented if statement