mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 13:16:39 +00:00
[Bug Fix] Fix issue with #suspend (#4314)
* [Bug Fix] Fix issue with #suspend * Add suspension clearing * Update character_data_repository.h * Final push.
This commit is contained in:
@@ -64,6 +64,22 @@ public:
|
||||
|
||||
return Strings::ToUnsignedInt(row[0]);
|
||||
}
|
||||
|
||||
static CharacterData FindByName(
|
||||
Database& db,
|
||||
const std::string& character_name
|
||||
)
|
||||
{
|
||||
auto l = CharacterDataRepository::GetWhere(
|
||||
db,
|
||||
fmt::format(
|
||||
"`name` = '{}' LIMIT 1",
|
||||
Strings::Escape(character_name)
|
||||
)
|
||||
);
|
||||
|
||||
return l.empty() ? CharacterDataRepository::NewEntity() : l.front();
|
||||
}
|
||||
};
|
||||
|
||||
#endif //EQEMU_CHARACTER_DATA_REPOSITORY_H
|
||||
|
||||
Reference in New Issue
Block a user