0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-26 18:38:52 +02:00

ircd:Ⓜ️ Add missing/matching my(user).

This commit is contained in:
Jason Volk 2018-02-25 00:19:03 -08:00
parent 979f585688
commit a25b9c84f5
2 changed files with 8 additions and 0 deletions

View file

@ -15,6 +15,8 @@ namespace ircd::m
{
struct user;
bool my(const user &);
bool exists(const id::user &);
}

View file

@ -54,6 +54,12 @@ ircd::m::exists(const user::id &user_id)
return user::users.has("ircd.user", user_id);
}
bool
ircd::m::my(const user &user)
{
return my(user.user_id);
}
/// Register the user by creating a room !@user:myhost and then setting a
/// an `ircd.account` state event in the `users` room.
///