Add missing arg to cmdneed

This commit is contained in:
Salanto 2024-08-29 20:47:00 +02:00
parent 24baeafc9f
commit 71193660ae

View File

@ -18,6 +18,7 @@
#include "aoclient.h" #include "aoclient.h"
#include "area_data.h" #include "area_data.h"
#include "config_manager.h"
#include "packet/packet_factory.h" #include "packet/packet_factory.h"
#include "server.h" #include "server.h"
@ -89,7 +90,7 @@ void AOClient::cmdNeed(int argc, QStringList argv)
QString l_sender_area = server->getAreaName(areaId()); QString l_sender_area = server->getAreaName(areaId());
QString l_sender_message = argv.join(" "); QString l_sender_message = argv.join(" ");
server->broadcast(PacketFactory::createPacket("CT", {"=== Advert ===\n[" + l_sender_area + "] needs " + l_sender_message + "."}), Server::TARGET_TYPE::ADVERT); server->broadcast(PacketFactory::createPacket("CT", {ConfigManager::serverTag(), "=== Advert ===\n[" + l_sender_area + "] needs " + l_sender_message + "."}), Server::TARGET_TYPE::ADVERT);
} }
void AOClient::cmdSwitch(int argc, QStringList argv) void AOClient::cmdSwitch(int argc, QStringList argv)