0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 18:22:50 +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 &); bool my(const room &);
// [GET] Util // [GET] Util
bool exists(const room &);
bool exists(const id::room &); bool exists(const id::room &);
id::room room_id(const mutable_buffer &, const id::room_alias &); 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); return bool(it);
} }
bool
ircd::m::exists(const room &room)
{
return exists(room.room_id);
}
bool bool
ircd::m::my(const room &room) ircd::m::my(const room &room)
{ {