mirror of
https://github.com/mangosfour/server.git
synced 2025-12-17 07:37:03 +00:00
[9767] Add the posibility to keep deleted characters in the database for a while and also add related commands.
Added commands: * .character deleted list [$guid|$name] * .character deleted restore $guid|$name [$newname] * .character deleted delete $guid|$name * .character deleted old [$keepdays] Command .character delete renamed to .character erase Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
c9ac685f04
commit
492ce567d2
22 changed files with 701 additions and 151 deletions
|
|
@ -191,6 +191,15 @@ inline bool isNumericOrSpace(wchar_t wchar)
|
|||
return isNumeric(wchar) || wchar == L' ';
|
||||
}
|
||||
|
||||
inline bool isNumeric(char const* str)
|
||||
{
|
||||
for(char const* c = str; *c; ++c)
|
||||
if (!isNumeric(*c))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
inline bool isNumeric(std::string const& str)
|
||||
{
|
||||
for(std::string::const_iterator itr = str.begin(); itr != str.end(); ++itr)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue