mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 22:58:34 +00:00
Ban and suspend commands now require a reason that is recorded in the DB
This commit is contained in:
+1
-1
@@ -659,7 +659,7 @@ the name "name" or zero if no character with that name was found
|
||||
Zero will also be returned if there is a database error.
|
||||
*/
|
||||
uint32 Database::GetAccountIDByChar(const char* charname, uint32* oCharID) {
|
||||
std::string query = StringFormat("SELECT account_id, id FROM character_ WHERE name='%s'", charname);
|
||||
std::string query = StringFormat("SELECT account_id, id FROM character_ WHERE name='%s'", EscapeString(charname).c_str());
|
||||
|
||||
auto results = QueryDatabase(query);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user