Ban and suspend commands now require a reason that is recorded in the DB

This commit is contained in:
KimLS
2014-09-20 15:09:43 -07:00
parent 33b79a3588
commit 7140a2054f
4 changed files with 74 additions and 48 deletions
+1 -1
View File
@@ -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);