mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 13:16:39 +00:00
ClearRaid converted to StringFormat
This commit is contained in:
+3
-4
@@ -1829,8 +1829,7 @@ void Database::SetAgreementFlag(uint32 acctid)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Database::ClearRaid(uint32 rid) {
|
void Database::ClearRaid(uint32 rid) {
|
||||||
char *query = nullptr;
|
|
||||||
|
|
||||||
if(rid == 0)
|
if(rid == 0)
|
||||||
{
|
{
|
||||||
//clear all raids
|
//clear all raids
|
||||||
@@ -1839,8 +1838,8 @@ void Database::ClearRaid(uint32 rid) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//clear a specific group
|
//clear a specific group
|
||||||
auto results = QueryDatabase(query, MakeAnyLenString(&query, "delete from raid_members where raidid = %lu", (unsigned long)rid));
|
std::string query = StringFormat("delete from raid_members where raidid = %lu", (unsigned long)rid);
|
||||||
safe_delete_array(query);
|
auto results = QueryDatabase(query);
|
||||||
|
|
||||||
if (!results.Success())
|
if (!results.Success())
|
||||||
std::cout << "Unable to clear raids: " << results.ErrorMessage() << std::endl;
|
std::cout << "Unable to clear raids: " << results.ErrorMessage() << std::endl;
|
||||||
|
|||||||
Reference in New Issue
Block a user