mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-18 11:48:21 +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:
@@ -11,10 +11,10 @@ void command_titlesuffix(Client *c, const Seperator *sep)
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
bool is_remove = !strcasecmp(sep->argplus[1], "-1");
|
||||
std::string suffix = is_remove ? "" : sep->argplus[1];
|
||||
|
||||
|
||||
auto target = c;
|
||||
if (c->GetTarget() && c->GetTarget()->IsClient()) {
|
||||
target = c->GetTarget()->CastToClient();
|
||||
@@ -26,7 +26,7 @@ void command_titlesuffix(Client *c, const Seperator *sep)
|
||||
}
|
||||
|
||||
if (!suffix.empty()) {
|
||||
find_replace(suffix, "_", " ");
|
||||
Strings::FindReplace(suffix, "_", " ");
|
||||
}
|
||||
|
||||
if (is_remove) {
|
||||
|
||||
Reference in New Issue
Block a user