diff options
| author | joschiwald <joschiwald.trinity@gmail.com> | 2014-11-03 19:11:14 +0100 |
|---|---|---|
| committer | joschiwald <joschiwald.trinity@gmail.com> | 2014-11-03 19:11:14 +0100 |
| commit | 52bd9a771e2b94cec2491c97f418cc51d725d5b8 (patch) | |
| tree | d380694d84c950cd5b8f8e440e1c68bb8f359aed /src/server/scripts/Commands | |
| parent | 064154c54018bb2c1657e4febf86ecc7c87b41e1 (diff) | |
Core/NetworkIO: implemented undelete opcodes and moved char create/delete packets to new packet classes
Diffstat (limited to 'src/server/scripts/Commands')
| -rw-r--r-- | src/server/scripts/Commands/cs_character.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/scripts/Commands/cs_character.cpp b/src/server/scripts/Commands/cs_character.cpp index cfde57f3184..0b351e310f4 100644 --- a/src/server/scripts/Commands/cs_character.cpp +++ b/src/server/scripts/Commands/cs_character.cpp @@ -105,7 +105,7 @@ public: if (isNumeric(searchString.c_str())) { stmt = CharacterDatabase.GetPreparedStatement(CHAR_SEL_CHAR_DEL_INFO_BY_GUID); - stmt->setUInt64(0, uint32(atoi(searchString.c_str()))); + stmt->setUInt64(0, strtoull(searchString.c_str(), nullptr, 10)); result = CharacterDatabase.Query(stmt); } // search by name @@ -205,7 +205,7 @@ public: // check character count uint32 charcount = AccountMgr::GetCharactersCount(delInfo.accountId); - if (charcount >= 10) + if (charcount >= sWorld->getIntConfig(CONFIG_CHARACTERS_PER_REALM)) { handler->PSendSysMessage(LANG_CHARACTER_DELETED_SKIP_FULL, delInfo.name.c_str(), delInfo.guid.ToString().c_str(), delInfo.accountId); return; |
