0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-26 05:48:20 +02:00

ircd:Ⓜ️:rooms: Reorder proffer conditions.

This commit is contained in:
Jason Volk 2019-09-07 22:03:02 -07:00
parent 82ef916256
commit 49752c3663

View file

@ -75,14 +75,6 @@ ircd::m::rooms::for_each(const opts &opts,
if(room_id < opts.room_id)
return;
if(opts.local_only)
if(!local_only(room))
return;
if(opts.remote_only)
if(local_only(room))
return;
if(opts.local_joined_only)
if(!local_joined(room))
return;
@ -91,6 +83,14 @@ ircd::m::rooms::for_each(const opts &opts,
if(!remote_joined(room))
return;
if(opts.local_only)
if(!local_only(room))
return;
if(opts.remote_only)
if(local_only(room))
return;
if(opts.server && !opts.summary)
if(opts.server != room_id.host())
return;