mirror of
https://github.com/EQEmu/Server.git
synced 2026-10-08 17:53:35 +00:00
SetAccountStatus converted to StringFormat
This commit is contained in:
1 parent
74b73e6f39
commit
4a10bdb91a
1 file changed
+2
-4
+2
-4
@@ -336,13 +336,11 @@ bool Database::SetLocalPassword(uint32 accid, const char* password) {
|
||||
}
|
||||
|
||||
bool Database::SetAccountStatus(const char* name, int16 status) {
|
||||
char *query = nullptr;
|
||||
std::string query = StringFormat("UPDATE account SET status=%i WHERE name='%s';", status, name);
|
||||
|
||||
std::cout << "Account being GM Flagged:" << name << ", Level: " << (int16) status << std::endl;
|
||||
|
||||
auto results = QueryDatabase(query, MakeAnyLenString(&query, "UPDATE account SET status=%i WHERE name='%s';", status, name));
|
||||
|
||||
safe_delete_array(query);
|
||||
auto results = QueryDatabase(query);
|
||||
|
||||
if (!results.Success())
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user