mirror of
https://github.com/matrix-construct/construct
synced 2024-11-25 16:22:35 +01:00
ircd:Ⓜ️:rooms: Reorder proffer conditions.
This commit is contained in:
parent
82ef916256
commit
49752c3663
1 changed files with 8 additions and 8 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue