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_ajoin.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_ajoin.cpp')
-rw-r--r-- | modules/nickserv/ns_ajoin.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/nickserv/ns_ajoin.cpp b/modules/nickserv/ns_ajoin.cpp index 91e700e4a..5e4419b85 100644 --- a/modules/nickserv/ns_ajoin.cpp +++ b/modules/nickserv/ns_ajoin.cpp @@ -40,14 +40,14 @@ struct AJoinEntry final } } - void Serialize(Serialize::Data &sd) const override + void Serialize(Serialize::Data &data) const override { if (!this->owner) return; - sd["owner"] << this->owner->display; - sd["channel"] << this->channel; - sd["key"] << this->key; + data.Store("owner", this->owner->display); + data.Store("channel", this->channel); + data.Store("key", this->key); } static Serializable *Unserialize(Serializable *obj, Serialize::Data &sd) |