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:
parent
979f585688
commit
a25b9c84f5
2 changed files with 8 additions and 0 deletions
|
@ -15,6 +15,8 @@ namespace ircd::m
|
|||
{
|
||||
struct user;
|
||||
|
||||
bool my(const user &);
|
||||
|
||||
bool exists(const id::user &);
|
||||
}
|
||||
|
||||
|
|
|
@ -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.
|
||||
///
|
||||
|
|
Loading…
Reference in a new issue