From 21d7ade72036e8436d2f31dcc4909ab140b96157 Mon Sep 17 00:00:00 2001 From: scatterflower <marisaposs@gameboyprinter.moe> Date: Sun, 18 Apr 2021 19:26:37 -0500 Subject: [PATCH] go back to comma separated --- src/commands/messaging.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/commands/messaging.cpp b/src/commands/messaging.cpp index 65597ca..c335de7 100644 --- a/src/commands/messaging.cpp +++ b/src/commands/messaging.cpp @@ -338,9 +338,11 @@ void AOClient::cmdCharCurse(int argc, QStringList argv) target->charcurse_list.append(server->getCharID(current_char)); } else { - argv.removeFirst(); //remove the UID + argv.removeFirst(); + QStringList char_names = argv.join(" ").split(","); + target->charcurse_list.clear(); - for (QString char_name : argv) { + for (QString char_name : char_names) { int char_id = server->getCharID(char_name); if (char_id == -1) { sendServerMessage("Could not find character: " + char_name);