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/nickserv/ns_set_misc.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/nickserv/ns_set_misc.cpp')
-rw-r--r-- | modules/nickserv/ns_set_misc.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/nickserv/ns_set_misc.cpp b/modules/nickserv/ns_set_misc.cpp index 6f8ad0f4e..87b50ebc4 100644 --- a/modules/nickserv/ns_set_misc.cpp +++ b/modules/nickserv/ns_set_misc.cpp @@ -46,9 +46,9 @@ struct NSMiscData final void Serialize(Serialize::Data &sdata) const override { - sdata["nc"] << this->object; - sdata["name"] << this->name; - sdata["data"] << this->data; + sdata.Store("nc", this->object); + sdata.Store("name", this->name); + sdata.Store("data", this->data); } static Serializable *Unserialize(Serializable *obj, Serialize::Data &data) |