0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-26 08:42:34 +01:00

ircd:Ⓜ️ Overload exists(room) in addition to room::id.

This commit is contained in:
Jason Volk 2018-03-08 11:38:29 -08:00
parent b5ad6b55a6
commit dc59cb8880
2 changed files with 7 additions and 0 deletions

View file

@ -25,6 +25,7 @@ namespace ircd::m
bool my(const room &);
// [GET] Util
bool exists(const room &);
bool exists(const id::room &);
id::room room_id(const mutable_buffer &, const id::room_alias &);

View file

@ -94,6 +94,12 @@ ircd::m::exists(const id::room &room_id)
return bool(it);
}
bool
ircd::m::exists(const room &room)
{
return exists(room.room_id);
}
bool
ircd::m::my(const room &room)
{