mirror of
https://github.com/EQEmu/Server.git
synced 2026-12-01 20:42:17 +00:00
[Strings] Refactor Strings Usage (#2305)
* Initial commit checkpoint * More functions converted * Commify * More functions * Fin * Sort declarations * Split functions between files * Bots * Update strings.h * Split * Revert find replaces * Repository template * Money * Misc function * Update CMakeLists.txt * Saylink * Update strings.cpp * Swap Strings::Saylink for Saylink::Create since saylink is coupled to zone database * API casings
This commit is contained in:
1 parent
44c85a0dd7
commit
dfd8f84cac
573 files changed
+5197
-5137
No files matched your search
@@ -25,8 +25,8 @@ void command_gearup(Client *c, const Seperator *sep)
|
||||
|
||||
if (auto res = cli.Get(url.c_str())) {
|
||||
if (res->status == 200) {
|
||||
for (auto &s: SplitString(res->body, ';')) {
|
||||
if (!trim(s).empty()) {
|
||||
for (auto &s: Strings::Split(res->body, ';')) {
|
||||
if (!Strings::Trim(s).empty()) {
|
||||
auto results = database.QueryDatabase(s);
|
||||
if (!results.ErrorMessage().empty()) {
|
||||
c->Message(
|
||||
@@ -161,7 +161,7 @@ void command_gearup(Client *c, const Seperator *sep)
|
||||
std::string message;
|
||||
for (auto row = results.begin(); row != results.end(); ++row) {
|
||||
int expansion = atoi(row[0]);
|
||||
message += "[" + EQ::SayLinkEngine::GenerateQuestSaylink(
|
||||
message += "[" + Saylink::Create(
|
||||
fmt::format("#gearup {}", expansion),
|
||||
false,
|
||||
Expansion::ExpansionName[expansion]
|
||||
|
||||
Reference in new issue
Block a user