mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 13:16:39 +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:
@@ -8,10 +8,10 @@ void command_title(Client *c, const Seperator *sep)
|
||||
c->Message(Chat::White, "Usage: #title [Title] (use \"-1\" to remove title)");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
bool is_remove = !strcasecmp(sep->argplus[1], "-1");
|
||||
std::string title = is_remove ? "" : sep->argplus[1];
|
||||
|
||||
|
||||
auto target = c;
|
||||
if (c->GetTarget() && c->GetTarget()->IsClient()) {
|
||||
target = c->GetTarget()->CastToClient();
|
||||
@@ -23,7 +23,7 @@ void command_title(Client *c, const Seperator *sep)
|
||||
}
|
||||
|
||||
if (!title.empty()) {
|
||||
find_replace(title, "_", " ");
|
||||
Strings::FindReplace(title, "_", " ");
|
||||
}
|
||||
|
||||
if (is_remove) {
|
||||
|
||||
Reference in New Issue
Block a user