Merge pull request #375 from AttorneyOnline/fix_cmdneed
[Bugfix] Fix /need being thrown into the void due to missing arg
This commit is contained in:
commit
eade738e68
@ -18,6 +18,7 @@
|
||||
#include "aoclient.h"
|
||||
|
||||
#include "area_data.h"
|
||||
#include "config_manager.h"
|
||||
#include "packet/packet_factory.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_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)
|
||||
|
Loading…
Reference in New Issue
Block a user