0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2025-02-18 09:40:12 +01:00

ircd:Ⓜ️ Rename ircd.account key to ircd.user in !users.

This commit is contained in:
Jason Volk 2018-02-23 19:35:38 -08:00
parent f2a3e2487c
commit 924d86e1e9

View file

@ -51,7 +51,7 @@ ircd::m::user::tokens
bool
ircd::m::exists(const user::id &user_id)
{
return user::users.has("ircd.account", user_id);
return user::users.has("ircd.user", user_id);
}
/// Register the user by creating a room !@user:myhost and then setting a
@ -73,7 +73,7 @@ try
};
send(room, user_id, "ircd.account.options", "registration", contents);
send(users, me.user_id, "ircd.account", user_id,
send(users, me.user_id, "ircd.user", user_id,
{
{ "active", true }
});
@ -165,7 +165,7 @@ ircd::m::user::is_active()
const
{
bool ret{false};
users.get(std::nothrow, "ircd.account", user_id, [&ret]
users.get(std::nothrow, "ircd.user", user_id, [&ret]
(const m::event &event)
{
const json::object &content
@ -173,7 +173,7 @@ const
at<"content"_>(event)
};
ret = content.at("active") == "true";
ret = content.get("active") == "true";
});
return ret;