summaryrefslogtreecommitdiff
path: root/modules/database/db_atheme.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-05-11 17:33:42 +0100
committerSadie Powell <sadie@witchery.services>2024-05-11 17:40:38 +0100
commit4008e64f26531383029cdb747b456d515d367ad6 (patch)
treedd76b234ef043f1594ae965c9812eae0eb1d2ae7 /modules/database/db_atheme.cpp
parent1cf5918574468c04c93f588b63b3531ea5768a89 (diff)
Store when the account name was registered in the NickCore.
Diffstat (limited to 'modules/database/db_atheme.cpp')
-rw-r--r--modules/database/db_atheme.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/database/db_atheme.cpp b/modules/database/db_atheme.cpp
index 60870f7a7..ee1d390c2 100644
--- a/modules/database/db_atheme.cpp
+++ b/modules/database/db_atheme.cpp
@@ -1131,7 +1131,7 @@ private:
auto display = row.Get();
auto pass = row.Get();
auto email = row.Get();
- /* auto regtime = */ row.GetNum<time_t>();
+ auto regtime = row.GetNum<time_t>();
/* auto lastlogin = */ row.Get();
auto flags = row.Get();
auto language = row.Get();
@@ -1141,6 +1141,7 @@ private:
auto *nc = new NickCore(display);
nc->email = email;
+ nc->time_registered = regtime;
ApplyPassword(nc, flags, pass);
// No equivalent: bglmNQrS