mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-15 08:48:22 +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:
@@ -2,7 +2,7 @@
|
||||
#include "login_server.h"
|
||||
#include "login_types.h"
|
||||
#include "../common/ip_util.h"
|
||||
#include "../common/string_util.h"
|
||||
#include "../common/strings.h"
|
||||
|
||||
extern LoginServer server;
|
||||
|
||||
@@ -1360,12 +1360,12 @@ void WorldServer::OnKeepAlive(EQ::Timer *t)
|
||||
void WorldServer::FormatWorldServerName(char *name, int8 server_list_type)
|
||||
{
|
||||
std::string server_long_name = name;
|
||||
server_long_name = trim(server_long_name);
|
||||
server_long_name = Strings::Trim(server_long_name);
|
||||
|
||||
bool name_set_to_bottom = false;
|
||||
if (server_list_type == LS::ServerType::Standard) {
|
||||
if (server.options.IsWorldDevTestServersListBottom()) {
|
||||
std::string s = str_tolower(server_long_name);
|
||||
std::string s = Strings::ToLower(server_long_name);
|
||||
if (s.find("dev") != std::string::npos) {
|
||||
server_long_name = fmt::format("|D| {}", server_long_name);
|
||||
name_set_to_bottom = true;
|
||||
|
||||
Reference in New Issue
Block a user