diff options
| author | Sadie Powell <sadie@witchery.services> | 2024-08-14 02:40:48 +0100 |
|---|---|---|
| committer | Sadie Powell <sadie@witchery.services> | 2024-08-14 05:47:55 +0100 |
| commit | 528b5938ec71abed396248cf5e00f346e685aaea (patch) | |
| tree | e923fed32be3fb62f946d44c633cd85ce855550b /modules/operserv/os_forbid.cpp | |
| parent | 03bee1706383d2766923e5d8edbb90d7ad1948b6 (diff) | |
Automatically determine SQL column type from the field.
Also add more column types to ensure we are storing data in the
best format in the database.
Diffstat (limited to 'modules/operserv/os_forbid.cpp')
| -rw-r--r-- | modules/operserv/os_forbid.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/operserv/os_forbid.cpp b/modules/operserv/os_forbid.cpp index a5a8b79ea..032cf0da7 100644 --- a/modules/operserv/os_forbid.cpp +++ b/modules/operserv/os_forbid.cpp @@ -25,12 +25,12 @@ struct ForbidDataImpl final void ForbidDataImpl::Serialize(Serialize::Data &data) const { - data["mask"] << this->mask; - data["creator"] << this->creator; - data["reason"] << this->reason; - data["created"] << this->created; - data["expires"] << this->expires; - data["type"] << this->type; + data.Store("mask", this->mask); + data.Store("creator", this->creator); + data.Store("reason", this->reason); + data.Store("created", this->created); + data.Store("expires", this->expires); + data.Store("type", this->type); } Serializable *ForbidDataImpl::Unserialize(Serializable *obj, Serialize::Data &data) |
