mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-22 19:58:24 +00:00
[Commands] Move #suspend from content database (#3651)
This commit is contained in:
@@ -19,7 +19,7 @@ void command_suspend(Client *c, const Seperator *sep)
|
|||||||
const std::string reason = sep->arg[3] ? sep->argplus[3] : "";
|
const std::string reason = sep->arg[3] ? sep->argplus[3] : "";
|
||||||
|
|
||||||
auto l = AccountRepository::GetWhere(
|
auto l = AccountRepository::GetWhere(
|
||||||
content_db,
|
database,
|
||||||
fmt::format(
|
fmt::format(
|
||||||
"LOWER(charname) = '{}'",
|
"LOWER(charname) = '{}'",
|
||||||
Strings::Escape(character_name)
|
Strings::Escape(character_name)
|
||||||
@@ -41,7 +41,7 @@ void command_suspend(Client *c, const Seperator *sep)
|
|||||||
l[0].suspendeduntil = std::time(nullptr) + (days * 86400);
|
l[0].suspendeduntil = std::time(nullptr) + (days * 86400);
|
||||||
l[0].suspend_reason = reason;
|
l[0].suspend_reason = reason;
|
||||||
|
|
||||||
if (!AccountRepository::UpdateOne(content_db, l[0])) {
|
if (!AccountRepository::UpdateOne(database, l[0])) {
|
||||||
c->Message(
|
c->Message(
|
||||||
Chat::White,
|
Chat::White,
|
||||||
fmt::format(
|
fmt::format(
|
||||||
|
|||||||
Reference in New Issue
Block a user